public ActionResult Edit(Entry ent) { if (!User.IsInRole("chief") && !User.IsInRole("writer")) { return Redirect("~/Home/AccessError"); } if (User.IsInRole("writer") && User.Identity.Name != ent.Author) { return Redirect("~/Home/AccessError"); } BlogManager db = new BlogManager(); db.SaveEntry(ent); return RedirectToAction("ViewEntry", new { id = ent.Id }); }