public OrderViewModel(DomainModel.Order order) : this() { Id = order.Id; CompanyId = order.CompanyId; Name = order.Name; KebabTypeId = order.KebabTypeId; KebabType = order.KebabType?.Name; SauceTypeId = order.SauceTypeId; SauceType = order.SauceType?.Name; MeatTypeId = order.MeatTypeId; MeatType = order.MeatType?.Name; KebabSizeId = order.KebabSizeId; KebabSize = order.KebabSize?.Name; Notes = order.Notes; DateAdded = order.DateAdded; AddedBy = order.AddedBy; AddedByName = order.AspNetUser_AddedBy.Email; }
public StatisticViewModel(DomainModel.Order statistic) : this() { Id = statistic.Id; CompanyId = statistic.CompanyId; Name = statistic.Name; KebabTypeId = statistic.KebabTypeId; KebabType = statistic.KebabType?.Name; SauceTypeId = statistic.SauceTypeId; SauceType = statistic.SauceType?.Name; MeatTypeId = statistic.MeatTypeId; MeatType = statistic.MeatType?.Name; KebabSizeId = statistic.KebabSizeId; KebabSize = statistic.KebabSize?.Name; Notes = statistic.Notes; DateAdded = statistic.DateAdded; AddedBy = statistic.AddedBy; AddedByName = statistic.AspNetUser_AddedBy.Email; }