Exemple #1
0
 public Rental GetRentById(int id)
 {
     try
     {
         return(rentRepo.GetOne(id));
     }
     catch (ArgumentException)
     {
         throw new ArgumentException("Data on this index does not exist.");
     }
 }