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); } }
public void AddCustomer(CustomerInfo customer) { dataBaseRepository.AddCustomer(customer); }