Beispiel #1
0
        public IActionResult DeleteConfirmed(string id)
        {
            var applicationUser = _service.GetUserById(id);

            _service.DeleteApplicationUser(applicationUser);
            return(RedirectToAction(nameof(Users)));
        }
Beispiel #2
0
 public IActionResult Delete(int id)
 {
     _applicationUserService.DeleteApplicationUser(_applicationUserService.GetApplicationUserById(id));
     return(NoContent());
 }
Beispiel #3
0
 public async Task DeleteApplicationUser(string applicationUserId)
 {
     await applicationUserService.DeleteApplicationUser(applicationUserId);
 }