person controller and service created

This commit is contained in:
2024-10-02 16:09:11 +02:00
Unverified
parent 3cd282a2e9
commit 9a9e29ecf4
22 changed files with 387 additions and 20 deletions

View 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
}