예제 #1
0
 public IActionResult Get(int pageNumber = 1, int pageSize = 10)
 {
     try
     {
         var debts = _fruitService.Get(pageNumber, pageSize);
         return(Ok(debts));
     }
     catch (Exception ex)
     {
         return(StatusCode(500, ex.Message));
     }
 }