Exemplo n.º 1
0
        public static bool SaveSupplier(string id, string name, string serviceCharge, string vat, string phone, string address, string country, string message, string currency)
        {
            InventoryBL  bl       = new InventoryBL();
            tbl_Supplier supplier = new tbl_Supplier()
            {
                Supplier_Id          = Convert.ToInt32(id),
                Supplier_Name        = name,
                Service_Charge_Value = serviceCharge,
                Vat_Charge_Value     = vat,
                Phone    = phone,
                Address  = address,
                Country  = country,
                Message  = message,
                Currency = currency
            };

            if (!bl.ValidateSupplier(supplier))
            {
                bool result = bl.SaveSupplier(supplier);
                return(result);
            }
            return(false);
        }