person controller and service created
This commit is contained in:
29
WatchIt.Common/WatchIt.Common.Model/Persons/PersonRequest.cs
Normal file
29
WatchIt.Common/WatchIt.Common.Model/Persons/PersonRequest.cs
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user