public IActionResult Post(Restaurant restaurant) { var createdRestaurant = _repository.Create(restaurant); if (createdRestaurant != null) { return(Ok()); } return(BadRequest()); }