public void Add(string shopName, string mail, string address, string contact, string bankAccount, string accountHolderName) { SupplierDatasource sds = new SupplierDatasource(); WCSA_Entity_Classes.Supplier sup = new WCSA_Entity_Classes.Supplier(shopName, mail, address, contact, bankAccount, accountHolderName); sds.AddToList(sup); }
public List <WCSA_Entity_Classes.Supplier> fetchSupplierList() { List <WCSA_Entity_Classes.Supplier> supplierList = new List <WCSA_Entity_Classes.Supplier>(); SupplierDatasource sds = new SupplierDatasource(); sds.returnEntireList(supplierList); return(supplierList); }
public void modifySupplierDetails(string shopName, string mail, string address, string contact, string bankAccount, string accountHolderName) { SupplierDatasource sds = new SupplierDatasource(); sds.ModifyList(new WCSA_Entity_Classes.Supplier(shopName, mail, address, contact, bankAccount, accountHolderName)); }
public void DeleteSupplier(string name) { SupplierDatasource sds = new SupplierDatasource(); sds.DeleteFromList(name); }
public WCSA_Entity_Classes.Supplier checkSupplierDetails(string sname) { SupplierDatasource sds = new SupplierDatasource(); return(sds.ReturnAnItem(sname)); }