Exemplo n.º 1
0
        public async Task <ActionResult> DeleteUserGroup(UserGroupViewModel model)
        {
            if (string.IsNullOrEmpty(model.Id))
            {
                return(BadRequest());
            }

            await _userGroupManager.DeleteUserGroupAsync(model.Id);

            return(Ok(model));
        }