// GET: Site/Edit/5 public ActionResult Edit(int id) { if (Session["employee"] == null) { return(RedirectToAction("Login", "Login", new { returnurl = HttpContext.Request.Url })); } else { o_site = new CSite(); o_site.LoadById(id); return(View(o_site)); } }
// GET: Site/Details/5 public ActionResult Details(int id) { o_site = new CSite(); o_site.LoadById(id); return(View(o_site)); }