예제 #1
0
        public IHttpActionResult Get([FromUri] RatingSearchParams spaceID)
        {
            var response = _service.GetAllRatings(spaceID);

            if (response == null)
            {
                return(NotFound());
            }
            return(Ok(response));
        }
예제 #2
0
 public IEnumerable <Rating> GetAllRatings()
 {
     return(ratingService.GetAllRatings());
 }