// GET: Products/Create public ActionResult Create() { ViewBag.SubCategories = new SelectList(_productDataSerice.GetSubCategories(), "Subcategory_Id", "Subcategory_Name"); ViewBag.Categories = new SelectList(_productDataSerice.GetCategories(), "Category_Id", "Category_Name", "Category_Id"); return(View()); }