Example #1
0
        public async Task <DateTimeOffset?> SetLockoutEndDateAsync([FromBody] SetLockoutDto LockoutInfo)
        {
            await userStore.SetLockoutEndDateAsync(LockoutInfo.User, LockoutInfo.LockoutEnd);

            await userStore.UpdateAsync(LockoutInfo.User);

            return(LockoutInfo.User.LockoutEnd);
        }
 public Task SetLockoutEndDateAsync(SetLockoutDto setLockoutDto)
 {
     return(_userStore.SetLockoutEndDateAsync(
                setLockoutDto.User,
                setLockoutDto.LockoutEnd));
 }
 public async Task SetLockoutEndDateAsync([FromBody] SetLockoutDto LocoutInfo)
 {
     await _UserStore.SetLockoutEndDateAsync(LocoutInfo.User, LocoutInfo.LockoutEnd);
 }
Example #4
0
        public async Task SetLockoutEndDateAsync([FromBody] SetLockoutDto lockoutInfo)
        {
            await _userStore.SetLockoutEndDateAsync(lockoutInfo.User, lockoutInfo.LockoutEnd);

            await _userStore.UpdateAsync(lockoutInfo.User);
        }