public IActionResult GetListPaginated([FromQuery] int page = 0, [FromQuery] int pageSize = 10)
 {
     try
     {
         List <CustomerDto> customers = _customerQueries.GetListPaginated(page, pageSize);
         return(StatusCode(StatusCodes.Status200OK, customers));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
         return(StatusCode(StatusCodes.Status500InternalServerError, new UpgFisi.Common.Domain.ApiStringResponse("Internal Server Error")));
     }
 }
 public IActionResult GetListPaginated([FromQuery] int page = 0, [FromQuery] int pageSize = 10)
 {
     try
     {
         List <CustomerDto> customers = _customerQueries.GetListPaginated(page, pageSize);
         return(StatusCode(StatusCodes.Status200OK, customers));
     }
     catch (Exception ex)
     {
         //TODO: Log exception async, for now write exception in the console
         Console.WriteLine(ex.Message);
         return(StatusCode(StatusCodes.Status500InternalServerError, new ApiStringResponse(ApiConstants.InternalServerError)));
     }
 }