public SalesViewModel(Sales salesData) { this.id = salesData.Id; this.country = salesData.Country; this.hardware = salesData.Hardware; this.software = salesData.Software; this.services = salesData.Services; }
public SalesViewModel(Sales entity, bool mapping = true) : base(entity) { this.Country = entity.Country; this.Hardware = entity.Hardware; this.Software = entity.Software; this.Services = entity.Services; }