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