public IActionResult GetResturantRatingDetail([FromQuery] string RestaurantName) { IQueryable <RatingandReviewDetails> restaurantratingDetails; restaurantratingDetails = business_Repo.GetRestaurantRating(RestaurantName); if (restaurantratingDetails != null) { return(this.Ok(restaurantratingDetails)); } return(this.StatusCode((int)HttpStatusCode.InternalServerError, string.Empty)); }