// GET: Director/Edit/5 public ActionResult Edit(int id) { if (Authenticate.IsAuthenticated()) { Director director = DirectorManager.LoadById(id); return(View(director)); } else { return(RedirectToAction("Login", "User", new { returnurl = HttpContext.Request.Url })); } }