public async Task <Results <bool> > DeleteAccount(long identityUser, string accountId) { Results <bool> unActiveResult = await _accountLogic.UnActiveAccount(identityUser, accountId); if (unActiveResult.IsError()) { return(unActiveResult); } bool canActive = await _accountLogic.CanActiveAccount(identityUser, accountId); if (canActive != false) { return(PandaResponse.CreateErrorResponse <bool>("Something wrong with account")); } return(PandaResponse.CreateSuccessResponse(canActive)); }