Example #1
0
        public ActionResult SearchPublisher(string search, string searchBook)
        {
            filter.SetSearchByName(s => s.Name, search);
            filter.SetSearchByName(GetPublisherBook, searchBook);

            filterContext.SetFilterResult(filter);

            return(RedirectToAction("TableInvoke", "Publisher"));
        }
Example #2
0
        public ActionResult SearchBookSearh(string search, string searchAuthor)
        {
            filter.SetSearchByName(s => s.Name, search);
            filter.SetSearchByName(GetFioAuthor, searchAuthor);

            filterContext.SetFilterResult(filter);

            return(RedirectToAction("TableInvoke", "Book"));
        }
Example #3
0
        public ActionResult Search(string search, List <Genre> listMany)
        {
            filter.SetSearchByName(GetFioAuthor, search);
            filter.SetMany(s => s.Genres, listMany);

            filterContext.SetFilterResult(filter);

            return(RedirectToAction("TableInvoke", "Author"));
        }