public CustomerDTO AddOrEditCustomer(string id) { CustomerDTO customer = new CustomerDTO(); CustomerDAL customerDAL = new CustomerDAL(); try { customer = customerDAL.AddOrEditCustomer(id); } catch (Exception) { } return(customer); }
public Response AddOrEditCustomer(CustomerDTO customerDTO) { Response _response = new Response(); CustomerDAL customerDAL = new CustomerDAL(); try { _response = customerDAL.AddOrEditCustomer(customerDTO); } catch (Exception ex) { throw; } return(_response); }