Example #1
0
        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();
        }
Example #2
0
 public IActionResult Update([FromBody] RestaurantDishUpdateModel dish)
 {
     _restaurantDishLogic.Update(dish);
     return(Ok());
 }