Exemple #1
0
        private Response CreateUserGroup(dynamic args)
        {
            var result = Guid.Empty;

            var model = this.BindAndValidate <CreateUserGroupModel>();

            if (model != null)
            {
                result = Async.Execute(() => UserGroups.CreateUserGroup(model.Application, model.Name, model.Description));
            }

            var response = (Response)JsonConvert.SerializeObject(result);

            response.ContentType = ResponseContentType;

            return(response);
        }