// GET: api/Groups/2 public async Task <GroupDto> Get(int id) { var group = await GroupGenericFacade.GetAsync(id); if (group == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } return(group); }
public async Task <IEnumerable <GroupProfileUserDto> > GetGroupUsers(int groupId) { var group = await GroupGenericFacade.GetAsync(groupId); if (group == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } var users = await GroupUserGenericFacade.GetUsersByGroupIdAsync(groupId); return(users); }