public void Update(RestaurantDishUpdateModel entity) { RestaurantDish restaurantDish = new RestaurantDish { Id = entity.Id, DishName = entity.DishName, Category = entity.Category, Ingredients = entity.Ingredients, Price = entity.Price, Weight = entity.Weight, RestaurantId = entity.RestaurantId }; _restaurantDishRepository.Update(restaurantDish); _restaurantDishRepository.Save(); }
public IActionResult Update([FromBody] RestaurantDishUpdateModel dish) { _restaurantDishLogic.Update(dish); return(Ok()); }