public void AddNewCustomer(T_Customer newcustomer) { try { ch = new CustomerHelper(); ch.addNewCustomer(newcustomer); } catch (Exception ex) { throw ex; } }
public void AddCustomerAddress(T_Customer_address address) { try { ch = new CustomerHelper(); ch.AddCustomerAddress(address); } catch (Exception ex) { throw ex; } }
public void AddCustomerContact(T_Customer_contacts contacts) { try { ch = new CustomerHelper(); ch.AddCustomerContacts(contacts); } catch (Exception ex) { throw ex; } }
public void EditCustomer(T_Customer customer) { try { ch = new CustomerHelper(); ch.editCustomer(customer); } catch (Exception ex) { throw ex; } }
public T_Customer getCustomerbyid(int customerid) { try { ch = new CustomerHelper(); var customer = ch.getCustomerByid(customerid); return customer; } catch (Exception ex) { throw ex; } }
public List<T_Customer> getCustomerListbyP(string cno, string cname, string csname) { try { ch = new CustomerHelper(); List<T_Customer> clist = ch.getCustomerList(cno, cname, csname); return clist; } catch (Exception ex) { throw ex; } }
public List<T_Customer> getCustomerList() { try { ch = new CustomerHelper(); List<T_Customer> clist = ch.getCustomerAllList(); return clist; } catch (Exception ex) { throw ex; } }
public List<T_Base_profession> getProfList() { try { ch = new CustomerHelper(); var lst = ch.getProfLst(); return lst; } catch (Exception ex) { throw ex; } }
public List<T_Customer_contacts> getCustomerContactList(int customerid) { try { ch = new CustomerHelper(); var lst = ch.getCustomerContacts(customerid); return lst; } catch (Exception ex) { throw ex; } }
public List<T_Customer_address> getCustomerAddressList(int customerid) { try { ch = new CustomerHelper(); var lst = ch.getCustomerAddress(customerid); return lst; } catch (Exception ex) { throw ex; } }
public List<T_Base_customertype> getCtmtypeList() { try { ch = new CustomerHelper(); var lst = ch.getCusmtypLst(); return lst; } catch (Exception ex) { throw ex; } }
public void DeleteCustomer(T_Customer customer) { try { ch = new CustomerHelper(); ch.delCustomer(customer); } catch (Exception ex) { throw ex; } }