person controller and service created
This commit is contained in:
25
WatchIt.Common/WatchIt.Common.Model/Persons/Person.cs
Normal file
25
WatchIt.Common/WatchIt.Common.Model/Persons/Person.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace WatchIt.Common.Model.Persons;
|
||||
|
||||
public class Person
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public required string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("full_name")]
|
||||
public string? FullName { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
[JsonPropertyName("birth_date")]
|
||||
public DateOnly? BirthDate { get; set; }
|
||||
|
||||
[JsonPropertyName("death_date")]
|
||||
public DateOnly? DeathDate { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user