public async Task <Results <bool> > UpdateStatement(long identityUser, PandaStatementCreateContract statement, Enums.PandaStatementStatus status) { statement.Status = status; bool canActive = await _accountLogic.CanActiveAccount(identityUser, statement.PandaAccountId); if (!canActive) { return(PandaResponse.CreateErrorResponse <bool>("Account suspended")); } bool canUpdateBalance = await _accountLogic.CanUpdateBalance(statement.PandaAccountId, statement.Balances, status); if (canUpdateBalance == false) { return(PandaResponse.CreateErrorResponse <bool>("Can not update balance")); } var runStatementResult = await _accountLogic.RunStatement(statement); return(runStatementResult); }