public async Task <IActionResult> Delete(string id)
        {
            try
            {
                var result = await _identity.DeleteUserAsync(id);

                return(Ok(result));
            }
            catch (Exception ex)
            {
                _logger.Error(ex, HttpContext.Request.Path);
                return(BadRequest(ex));
            }
        }
Esempio n. 2
0
        public async Task <IActionResult> DeleteUser(string email)
        {
            await _identityRepo.DeleteUserAsync(email);

            return(await LoadUserManagementView());
        }