Skip to content

Instantly share code, notes, and snippets.

@stpriyanka
Last active March 30, 2017 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stpriyanka/cde231f350c3beefd6c3c59fb9eceb3e to your computer and use it in GitHub Desktop.
Save stpriyanka/cde231f350c3beefd6c3c59fb9eceb3e to your computer and use it in GitHub Desktop.
Data needs to map between DTO and DM classes
public class CompanyDM
{
public int ID { get; set; }
public string CompanyName { get; set; }
public string ContactPersonName { get; set; }
public string ContactPersonEmail { get; set; }
public string VAT { get; set; }
public string CompanyAddress { get; set; }
public bool HasMultipleBranch { get; set; }
public bool PaidCustomer { get; set; }
public DateTime CompanyCreatedAt { get; set; }
}
public class CompanyDTO
{
public string CompanyName { get; set; }
public string ContactPersonName { get; set; }
public string ContactPersonEmail { get; set; }
public string VAT { get; set; }
public string CompanyAddress { get; set; }
public bool HasMultipleBranch { get; set; }
public DateTime CompanyCreatedAt { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment