public void UpdateMeal(MealUpdateInputeDTO meal) { IList <Garnish> garnishies = new List <Garnish>(); if (meal.GarnishiesId != null) { foreach (var g in meal.GarnishiesId) { garnishies.Add(userService.GetGarnishById(g)); } } this.sellerService.UpdateMeal(new Meal { Id = meal.Id, Name = meal.Name, Description = meal.Description, Price = meal.Price, Days = meal.Days, MenuId = meal.MenuId, Garnishies = garnishies }); }
public void UpdateMeal(MealUpdateInputeDTO meal) { this.sellerAppService.UpdateMeal(meal); }