Exemplo n.º 1
0
 public ActionResult GetAuthorsByName(string name)
 {
     try
     {
         TempData["AuthorList"] = authorsDb.GetAuthorsByName(name);
         pageSize = pageSizeForFilter;
         return(RedirectToAction("AuthorsTable", "Admin"));
     }
     catch
     {
         return(RedirectToAction("AuthorsTable", "Admin"));
     }
 }