You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

81 lines
2.0 KiB

using System;
using System.ComponentModel.DataAnnotations;
namespace Transfast.Model.Sender
{
public class SenderRequest
{
public int SenderId { get; set; }
public string LoyaltyCardNumber { get; set; }
[Required]
public string Name { get; set; }
public string NameOtherLanguage { get; set; }
[Required]
public string Address { get; set; }
public string AddressOtherLanguage { get; set; }
[Required]
public string PhoneMobile { get; set; }
public string PhoneHome { get; set; }
public string PhoneWork { get; set; }
public string ZipCode { get; set; }
[Required]
public int CityId { get; set; }
[Required]
public string StateId { get; set; }
[Required]
public string CountryIsoCode { get; set; }
public string TypeOfId { get; set; }
public string IdNumber { get; set; }
private string _IdExpiryDate;
public string IdExpiryDate
{
get
{
if (!string.IsNullOrWhiteSpace(_IdExpiryDate))
{
return Convert.ToDateTime(_IdExpiryDate).ToString("yyyy-MM-dd");
}
else
{
return null;
}
}
set { _IdExpiryDate = value; }
}
public string NationalityIsoCode { get; set; }
private string _DateOfBirth;
public string DateOfBirth
{
get
{
if (!string.IsNullOrWhiteSpace(_DateOfBirth))
{
return Convert.ToDateTime(_DateOfBirth).ToString("yyyy-MM-dd");
}
else
{
return null;
}
}
set { _DateOfBirth = value; }
}
public string Email { get; set; }
public bool IsIndividual { get; set; }
}
}