Exemplo n.º 1
0
 // 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));
     }
 }
Exemplo n.º 2
0
 // GET: Site/Details/5
 public ActionResult Details(int id)
 {
     o_site = new CSite();
     o_site.LoadById(id);
     return(View(o_site));
 }