public async Task <IActionResult> Leave() { if (HttpContext.TryGetCurrentSession(out AccountSessionView accountSessionView)) { return(Ok(await ClanService.Leave(accountSessionView.AccountID))); } return(Ok(ValidatedView.Invalid(ErrorCode.OPERATION_FAILED))); }