예제 #1
0
 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;
 }
예제 #2
0
 public DishModel()
 {
     State = new SuspiciousState() { Index = 0 };
     IsItPublic = true;
     NutritionFacts = new NutritionFactsViewModel();
 }