public ActionResult CustomerUrl_edit(int ID) { Panda_CustomerTopMenu cus = db.Panda_CustomerTopMenu.Find(ID); if (cus == null) { return(HttpNotFound()); } else { ViewBag.ddlTypeDataSource = Panda_CustomerDal.SearchMenusDDL(""); ViewBag.ddlTypeSelect = cus.TopMenuID.Value.ToString(); } return(View(cus)); }
public ActionResult CustomerUrl_new(int customerID) { ViewBag.ddlTypeDataSource = Panda_CustomerDal.SearchMenusDDL(""); ViewBag.customerID = customerID.ToString(); return(View()); }