public ActionResult Search(string selectKriteria, string txtSearch) { using (BooksDAL svBooks = new BooksDAL()) { var results = svBooks.SearchByKriteria(selectKriteria, txtSearch).ToList(); return(View("ViewAllBooks", results)); } }
public ActionResult Search(string selectKriteria, string txtSearch) { using (BooksDAL svBooks = new BooksDAL()) { var results = svBooks.SearchByKriteria(selectKriteria, txtSearch).ToList(); return(View("ViewAllBooks", results)); } }