public IActionResult DeleteUser(int userId) { try { _userManagerService.DeleteUser(userId); return(Ok()); } catch (Exception e) { return(StatusCode(500, new { Message = "Server ERROR occured." })); } }
public bool DeleteUser(string userId) { var id = Guid.Parse(userId); return(_userManagerService.DeleteUser(id)); }