public IActionResult Post(int restaurantId, [FromBody] MenuModel menu) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var createdMenu = _menuService.AddMenuIfNotExists(restaurantId, menu); return(Ok(createdMenu)); }
public IActionResult Post(int restaurantId, [FromBody] MenuModel menu) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var createdMenu = _menuService.AddMenuIfNotExists(restaurantId, menu); return(Ok(createdMenu)); }