public ActionResult ApplySuccess() { int id = int.Parse(TakeCookie.GetCookie("userId")); Tb_ApplyTable model = (Tb_ApplyTable)mHelp.GetModelBy <Tb_ApplyTable>(m => m.UserID == id); if (model != null) { ViewBag.appID = model.ApplyID; } return(View()); }