public bool UpdateCustomer(Customer customer)
 {
     try
     {
         return(repository.DAL_ModifyCustomer(customer));
     }
     catch (Exception ex)
     {
         ServiceFault f = new ServiceFault();
         f.OperationName   = "UpdateCustomer";
         f.ExceptopMessage = ex.Message;
         throw new FaultException <ServiceFault>(f);
     }
 }
 public void DeleteCustomer(int id)
 {
     try
     {
         repository.DAL_DeleteCustomer(id);
     }
     catch (Exception ex)
     {
         ServiceFault f = new ServiceFault();
         f.OperationName   = "DeleteCustomer";
         f.ExceptopMessage = ex.Message;
         throw new FaultException <ServiceFault>(f);
     }
 }
 public List <Customer> GetCustomers()
 {
     try
     {
         return(repository.DAL_GetCustomers());
     }
     catch (Exception ex)
     {
         ServiceFault f = new ServiceFault();
         f.OperationName   = "GetCustomer";
         f.ExceptopMessage = ex.Message;
         throw new FaultException <ServiceFault>(f);
     }
 }
 public Customer AddCustomer(Customer customer)
 {
     try
     {
         repository.DAL_AddCustomer(customer);
     }
     catch (Exception ex)
     {
         ServiceFault f = new ServiceFault();
         f.OperationName   = "AddCustomer";
         f.ExceptopMessage = ex.Message;
         throw new FaultException <ServiceFault>(f);
     }
     return(customer);
 }