Exemple #1
0
 public async Task <ActionResult <IEnumerable <CountableGroup> > > GetGroups(int page = 0, int length = 45)
 {
     // count by selection and send the json result
     try
     {
         return(Ok(await GroupService.GetGroupWithMetrics(HttpContext.User.GetUserId(), page, length)));
     }
     catch (BadPaginationException)
     {
         return(BadRequest());
     }
 }