Beispiel #1
0
        // note that the user does not get signed out by calling this
        public async Task DeleteUser(BookingUser user)
        {
            await _bookingService.CancelAllUserReservations(user.OwnerId);

            var idUser = await _userManager.FindByIdAsync(user.OwnerId);

            await _userManager.UpdateSecurityStampAsync(idUser);

            await _userManager.DeleteAsync(idUser);
        }
Beispiel #2
0
        public async Task RejectUser(BookingUser user)
        {
            var idUser = await _userManager.FindByIdAsync(user.OwnerId);

            await EnsureNoRole(idUser, "approved");
        }