public IActionResult GetRestaurant(int restaurantId) { var restaurantEntities = _restaurantInfoRepository.GetRestaurant(restaurantId); if (restaurantEntities == null) { return(StatusCode(500, "The restaurant you want is not in the database")); } return(Ok(restaurantEntities)); }