55 lines
1.2 KiB
C#
55 lines
1.2 KiB
C#
|
|
|
|
namespace FamilyTreeAPI.Entities;
|
|
|
|
public class ChildCriteria
|
|
{
|
|
public int FatherId { get; set; }
|
|
public int MotherId { get; set; }
|
|
|
|
}
|
|
public class FamilyCriteria
|
|
{
|
|
public bool UseFather { get; set; }
|
|
public bool UseMother { get; set; }
|
|
|
|
}
|
|
public class PersonCriteria
|
|
{
|
|
public int Id { get; set; }
|
|
public string FirstName { get; set; }
|
|
public string LastName { get; set; }
|
|
}
|
|
|
|
public class PersonForSave
|
|
{
|
|
public PersonDto Person { get; set; }
|
|
public string? FormData { get; set; }
|
|
public string? FileName { get; set; }
|
|
|
|
}
|
|
public partial class PersonDto
|
|
{
|
|
public PersonDto()
|
|
{
|
|
|
|
}
|
|
|
|
public int Id { get; set; }
|
|
public string? FirstName { get; set; }
|
|
public string? LastName { get; set; }
|
|
public string? Email { get; set; }
|
|
public string? Phone { get; set; }
|
|
public string? Image { get; set; }
|
|
public string? Sex { get; set; }
|
|
public string? Address { get; set; }
|
|
public bool? Alive { get; set; }
|
|
public string? dob { get; set; }
|
|
public int? FatherId { get; set; }
|
|
public int? MotherId { get; set; }
|
|
|
|
public List<RelationShipDto>? RelationShips { get; set; }
|
|
public List<PersonPhotoDto>? PersonPhotos { get; set; }
|
|
|
|
}
|