public IActionResult Post([FromBody] RestaurantModel restaurantModel)
 {
     try
     {
         var Restaurant = _restaurantService.Add(restaurantModel.ToDomainModel());
         return(Ok(Restaurant));
     }catch (Exception ex)
     {
         ModelState.AddModelError("PostRestaurant", ex.Message);
         return(BadRequest(ModelState));
     }
 }
 public IActionResult Put(int id, [FromBody] RestaurantModel restaurantModel)
 {
     try
     {
         restaurantModel.Id = id;
         var Restaurant = _restaurantService.Update(restaurantModel.ToDomainModel());
         if (Restaurant == null)
         {
             return(NotFound());
         }
         return(Ok(Restaurant.ToAPIModel()));
     }catch (Exception ex)
     {
         ModelState.AddModelError("UpdateRestaurant", ex.Message);
         return(BadRequest(ModelState));
     }
 }