Example #1
0
 public async Task <ActionResult <IEnumerable <GroupDTO> > > GetGroupsAsync(int id)
 {
     try
     {
         return(Ok(await volunteerService.GetGroupsAsync(id)));
     }
     catch (NotFoundException e)
     {
         return(NotFound(new { Id = id, e.Message }));
     }
 }