Пример #1
0
 public int SaveSupplier(Supplier supplier)
 {
     SupplierDL supplierDL = new SupplierDL();
     if (supplier.SupplierID > 0)
         return supplierDL.UpdateSupplier(supplier);
     else
         return supplierDL.SaveSupplier(supplier);
 }
Пример #2
0
        public List<Supplier> GetSuppliers(bool allSelection)
        {
            SupplierDL supplierDL = new SupplierDL();
            List<Supplier> suppliers = supplierDL.GetSuppliers();

            if (allSelection && suppliers != null)
                suppliers.Insert(0, new Supplier(-1, "Sve"));

            return suppliers;
        }
Пример #3
0
 public int DeleteSupplier(int supplierID)
 {
     SupplierDL supplierDL = new SupplierDL();
     return supplierDL.DeleteSupplier(supplierID);
 }