public async Task <ActionResult <Restaurant> > GetRestaurantByRatingsAsync([FromRoute] double rating) { var restaurant = await _restaurantService.GetFilterByRating(rating); if (restaurant != null) { return(Ok(restaurant)); } else { return(NotFound("Item you are searching is not found")); } }