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