예제 #1
0
        public async Task <ActionResult> DeleteUserGroupMembership(UserGroupMembershipViewModel model)
        {
            if (string.IsNullOrEmpty(model.UserGroupId) || string.IsNullOrEmpty(model.UserId))
            {
                return(BadRequest());
            }

            await _userGroupManager.DeleteUserGroupMembershipAsync(model.UserGroupId, model.UserId);

            return(Ok(model));
        }