O — Open/Closed Principle(Принцип открытости/закрытости)
public class RegisterApiV1
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public string Photo { get; set; }
public string UId { get; set; }
}
public class RegisterApiV2 : RegisterApiV1
{
public DateTime DateOfBirth { get; set; }
}Last updated