public async Task <PagedViewModel <GroupView> > Get(string name, int pageNumber, int pageSize) { return(await groupServices.GetGroups(name, pageNumber, pageSize)); }
public IActionResult GetGroups(int userId) { List <Group> groups = _groupServices.GetGroups(userId); return(Ok(groups)); }