public async Task <IActionResult> Get([FromRoute] Guid activityId)
        {
            var(_, isFailure, value, error) = await _ratingsService.Get(activityId);

            if (isFailure)
            {
                return(BadRequest(error));
            }

            return(Ok(value));
        }
 public List <Data.Model.Ratings> Get([FromQuery] RatingsSearchRequest req)
 {
     return(_service.Get(req));
 }
 public List <Model.Ratings> Get([FromQuery] Model.Requests.RatingsSearchRequest request)
 {
     return(_service.Get(request));
 }
Esempio n. 4
0
 public async Task <ActionResult <Dictionary <string, int> > > Get()
 {
     return(Ok(await _ratings.Get()));
 }