Пример #1
0
 public Customer Load(int customerId)
 {
     try
     {
         return(CustomerRepository.Load(customerId));
     }
     catch (Exception ex)
     {
         throw new Exception("Error fetching Customer details for custId: " + customerId.ToString(), ex);
     }
 }
Пример #2
0
 public bool Exists(int customerId)
 {
     return(CustomerRepository.Load(customerId) != null);
 }
Пример #3
0
 public Customer Load(int customerId)
 {
     return(CustomerRepository.Load(customerId));
 }