コード例 #1
0
 public void AddCustomer(CustomerInfo customer)
 {
     try
     {
         dataBaseRepository.AddCustomer(customer);
     }
     catch (Exception ex)
     {
         SaveException.Log("webErrors.txt", ex);
         throw new WebFaultException <string>("Sorry something went wrong when trying to add customer to Database ", HttpStatusCode.InternalServerError);
     }
 }
コード例 #2
0
 public void AddCustomer(CustomerInfo customer)
 {
     dataBaseRepository.AddCustomer(customer);
 }