public IActionResult DeleteHub() { try { var currentModerator = _authenticationService.GetCurrentModerator(); _moderatorService.DeleteModerator(currentModerator); return(NoContent()); } catch (BaseException ex) { return(Unauthorized( new UnauthorizedError(ex))); } }