public ActionResult DeleteConfirmed(int id) { Chronicle chronicle = db.Chronicles.Find(id); DeleteModels.Delete(chronicle); return(RedirectToAction("Index", new { id = chronicle.Story_id })); }
public ActionResult DeleteConfirmed(int id) { Session session = db.Sessions.Find(id); DeleteModels.Delete(session); return(RedirectToAction("Index", new { id = session.Chronicle_id })); }
public ActionResult DeleteConfirmed(int id) { Story story = db.Stories.Find(id); DeleteModels.Delete(story); return(RedirectToAction("Narrator", "Administration", null)); }
public ActionResult DeleteConfirmed(string id) { AspNetUser aspNetUser = db.AspNetUsers.Find(id); DeleteModels.Delete(aspNetUser); return(RedirectToAction("Index", "Administration", null)); }
public ActionResult DeleteConfirmed(int id) { Player player = db.Players.Find(id); DeleteModels.Delete(player); return(RedirectToAction("Narrator", "Administration", null)); }
public ActionResult DeleteConfirmed(int id) { Character character = db.Characters.Find(id); DeleteModels.Delete(character); if (User.IsInRole("Narrator")) { return(RedirectToAction("Index", new { id = character.Parent_id })); } else { return(RedirectToAction("Player", "Administration")); } }