public ActionResult Details(string id) { if (string.IsNullOrEmpty(id)) { return(RedirectToAction("Index", "Author", null)); } return(View(ManagerAuthor.DetailAuthor(id))); }
public ActionResult DeleteAuthor(string id) { if (string.IsNullOrEmpty(id)) { return(RedirectToAction("Index", "Author", null)); } ManagerAuthor.DelAuthor(id); return(RedirectToAction("Index", "Author", null)); }
public ActionResult SaveAuthor(AuthorEntity detail) { ManagerAuthor.SaveAuthor(detail); return(RedirectToAction("Index", "Author", null)); }
// GET: Author public ActionResult Index() { return(View(ManagerAuthor.GetAuthors())); }