public IActionResult Get(int offset, int limit) { try { return(Ok(_bankAccountApplicationService.getAll(offset, limit))); } catch (Exception) { return(StatusCode(Constantes.HttpStatus.ErrorServer, this.responseHandler.getAppExceptionResponse())); } }
public IActionResult Get(int offset = Constantes.DefaultPagination.defaultOffset, int limit = Constantes.DefaultPagination.defaultLimit, string orderBy = Constantes.DefaultPagination.orderBy, string orderDirection = Constantes.DefaultPagination.orderDirection) { try { return(Ok(_bankAccountApplicationService.getAll(offset, limit, orderBy, orderDirection))); } catch (Exception) { return(StatusCode(Constantes.HttpStatus.ErrorServer, this.responseHandler.getAppExceptionResponse())); } }