protected void btnNewVendorSubCat_Click(object sender, EventArgs e) { VendorSubCategory objVendorSubCat = new VendorSubCategory(); objVendorSubCat.VendorCatId = hdnVendorCatID.Value.ToString(); objVendorSubCat.IsRetail_Wholesale = chkVSCRetail_WholesaleEdit.Checked; objVendorSubCat.IsManufacturer = chkVSCManufacturerEdit.Checked; objVendorSubCat.Name = txtVendorSubCatEdit.Text; ActiveProductID = Convert.ToInt32(hdnProductID.Value.ToString()); ActiveCategoryID = Convert.ToInt32(hdnVendorCatID.Value.ToString()); bool res = VendorBLL.Instance.SaveNewVendorSubCat(objVendorSubCat); if (res) { ScriptManager.RegisterStartupScript(this, this.GetType(), "AlertBox", "alert('Vendor Sub Category Added Successfully');", true); string Mtype = GetManufacturerType(); GetInventoryCategoryList(Mtype); } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "AlertBox", "alert('Unable to add Vendor Sub Category');", true); } }
public bool DeleteVendorSubCat(VendorSubCategory objVendorsubCat) { return(VendorDAL.Instance.DeleteVendorSubCat(objVendorsubCat)); }
public bool SaveNewVendorSubCat(VendorSubCategory objVendorsubCat) { return(VendorDAL.Instance.SaveNewVendorSubCat(objVendorsubCat)); }