public DishModelBackOffice(DishModel dish) { Name = dish.Name; Description = dish.Description; RestaurantId = dish.RestaurantId; MenuPartId = dish.MenuPartId; ImageUrl = dish.ImageUrl; LocalUrl = dish.LocalUrl; Language = dish.Language; NutritionFacts = dish.NutritionFacts; BaseLineNutritionFacts = new NutritionFactsViewModel(); State = dish.State; DefaultWeight = dish.DefaultWeight; dishId = dish.dishId; ItemLocation = dish.ItemLocation; IsItPublic = dish.IsItPublic; OrderBy = dish.OrderBy; }
public DishModel() { State = new SuspiciousState() { Index = 0 }; IsItPublic = true; NutritionFacts = new NutritionFactsViewModel(); }