public IActionResult CashFlow([FromQuery] Account account) { var result = _balanceService.CashFlow(account); if (result == null) { var error = new ErrorsDTO(); error.Add("account", "not found"); return(new NotFoundObjectResult(error)); } return(new OkObjectResult(result)); }