29 lines
583 B
C#
29 lines
583 B
C#
|
|
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
|
||
|
|
}
|