Exemplo n.º 1
0
        public ActionResult SubClassification(FormCollection FC)
        {
            Session["ControllerName"] = "Sub Classification";
            string category = FC["Category"].ToString();
            string SubCategory = FC["subCategory"].ToString();
            string subClassification = FC["txtBoxSubClassification"].ToString();

            if (category != null && category != string.Empty && SubCategory != null && SubCategory != string.Empty && subClassification != null && subClassification != string.Empty)
            {
                ProductAdminBLL bll = new ProductAdminBLL();
                int res = bll.InsertSubClassification(subClassification, SubCategory);

                if (res > 0)
                {
                    LoadCategoryDDL();
                }


            }
            else
            {
                LoadCategoryDDL();
            }
            return View();
        }