public ActionResult ChildCategory(int SubCategoryId, int CategoryId)
        {
            var results = objIronWork.GetCategorybyId(CategoryId);

            ViewBag.LogoImage = results.LogoPath;
            SubCategory obj  = new SubCategory();
            var         data = obj.Getsubcategory(SubCategoryId);

            ViewBag.SubcategoryName = data.SubCategory_Name;
            ChildCategory objchild = new ChildCategory();
            var           result   = objchild.ChildImages(SubCategoryId);

            return(View(result));
        }
Ejemplo n.º 2
0
        public ActionResult SubCategories(int id = 0)
        {
            SubCategory objsub = new SubCategory();

            if (id == 0)
            {
                Ls_SubCategory obj = new Ls_SubCategory();
                return(View(obj));
            }
            else
            {
                var result = objsub.Getsubcategory(id);
                return(View(result));
            }
        }