Example #1
0
        protected void btnSaveSupplierSubCat_Click(object sender, EventArgs e)
        {
            string SuppId        = hdnSupplierCatId.Value.ToString();
            string SupSubcatName = txtSupSubCatName.Text;

            clsSupplierCategory objNewSupSubCat = new clsSupplierCategory();

            objNewSupSubCat.SupplierId         = SuppId;
            objNewSupSubCat.SupplierSubCatName = SupSubcatName;

            bool res = VendorBLL.Instance.SaveSupSubCat(objNewSupSubCat);

            if (res)
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "AlertBox", "alert('Supplier Sub Category Added Successfully');", true);
                GetSupplierCategoryList();
            }
            else
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "AlertBox", "alert('Unable to Add Supplier Sub Category');", true);
            }
        }
 public bool DeleteSupSubCat(clsSupplierCategory objNewSupSubCat)
 {
     return(VendorDAL.Instance.DeleteSupSubCat(objNewSupSubCat));
 }
 public bool UpdateSupSubCat(clsSupplierCategory obj)
 {
     return(VendorDAL.Instance.UpdateSupSubCat(obj));
 }