public RestaurantRatingByISpecification(RestaurantRatingByIdParams restaurantAllParams)
     : base(x => x.Id.Equals(restaurantAllParams.Id) &&
            x.IsCanceled.Equals(false))
 {
     AddOrderBy(x => x.Name);
     AddInclude(x => x.RestaurantRatings);
 }
        public ActionResult <RestaurantWithRestaurantRatingsVM> GetRestaurantRatingById([FromQuery] RestaurantRatingByIdParams restaurantRatingByIdParams)
        {
            var spec = new RestaurantRatingByISpecification(restaurantRatingByIdParams);

            var restaurantListVM = _mapper.Map <RestaurantWithRestaurantRatingsVM>(_restauranRepo.GetEntityWithSpec(spec));

            return(Ok(restaurantListVM));
        }