Example #1
0
        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);
        }
Example #2
0
 public List <UserGroupModel> GetUserGroups()
 {
     return(UserGroups.GetUserGroups());
 }