public ActionResult Create() { if (Session["username"] == null) { return(RedirectToAction("HomePage", "Home")); } var productcategorylist = productCategoryManager.GetSome(5); ViewBag.plist = productcategorylist.ToList(); var list = generalCategoryManager.GetAll(); ViewBag.orglist = list.ToList(); bool s = Request.QueryString["success"] == "true"; if (s) { ViewData["success"] = "Save Successfully"; } return(View()); }