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,29 @@
using System.Text.Json.Serialization;
namespace WatchIt.Common.Model.Persons;
public class PersonRequest : Person
{
#region PROPERTIES
[JsonPropertyName("gender_id")]
public short? GenderId { get; set; }
#endregion
#region PUBLIC METHODS
public Database.Model.Person.Person CreatePerson() => new Database.Model.Person.Person
{
Name = Name,
FullName = FullName,
Description = Description,
BirthDate = BirthDate,
DeathDate = DeathDate,
GenderId = GenderId,
};
#endregion
}