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.
|
|
using System; using System.ComponentModel.DataAnnotations;
namespace Transfast.Model.Sender { public class TFSenderRequest { public int SenderId { get; set; } public string BranchId { 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; } public string ZipCode { get; set; }
[Required] public string PhoneMobile { get; set; }
public string PhoneHome { get; set; } public string PhoneWork { get; set; }
[Required] public string CountryIsoCode { get; set; }
public string CountryName { get; set; }
[Required] public string StateId { get; set; }
[Required] public string CityId { get; set; }
[Required] public string TypeOfId { get; set; }
[Required] public string IdNumber { get; set; }
private string _IdExpiryDate;
public string IdExpiryDate { get { if (!string.IsNullOrWhiteSpace(_IdExpiryDate)) { return Convert.ToDateTime(_IdExpiryDate).ToString("yyyy-MM-ddTHH:mm:sszzz"); } else { return null; } } set { _IdExpiryDate = value; } }
private string _DateOfBirth;
public string DateOfBirth { get { if (!string.IsNullOrWhiteSpace(_DateOfBirth)) { return Convert.ToDateTime(_DateOfBirth).ToString("yyyy-MM-ddTHH:mm:sszzz"); } else { return null; } } set { _DateOfBirth = value; } }
[Required] public string Email { get; set; }
public string NationalityIsoCode { get; set; } public bool IsIndividual { get; set; } } }
|