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