Ejemplo n.º 1
0
 public IActionResult GetAccountStatement(AccountStatementRequest request)
 {
     if (ModelState.IsValid)
     {
         var response = new SingleResponse <AccountStatement>()
         {
             ResultCode = ResultCodes.normal
         };
         response.Result = _xbService.GetAccountStatement(request.AccountNumber, request.DateFrom, request.DateTo, request.MinAmount,
                                                          request.MaxAmount, request.DebCred, request.TransactionsCount, request.OrderByAscDesc);
         return(ResponseExtensions.ToHttpResponse(response));
     }
     else
     {
         return(ValidationError.GetValidationErrorResponse(ModelState));
     }
 }