private Response GetUserGroups(dynamic args) { var groups = Async.Execute <List <UserGroup> >(() => UserGroups.GetUserGroups(args.app)); var response = (Response)JsonConvert.SerializeObject(groups); response.ContentType = ResponseContentType; return(response); }
public List <UserGroupModel> GetUserGroups() { return(UserGroups.GetUserGroups()); }