Пример #1
0
        public ActionResult SearchResult(string name, string sortBy)
        {
            /* Call the DAL and pass the values as a model back to the View */
            IList <Customer> customerList = dal.SearchForCustomers(name, sortBy);

            return(View("SearchResult", customerList));
        }
Пример #2
0
        public ActionResult SearchResult(CustSearchModel customer)
        {
            /* Call the DAL and pass the values as a model back to the View */

            var custSearch = dal.SearchForCustomers(customer.FirstOrLastName, customer.SortOrder);

            return(View("SearchResult", custSearch)); //revisit
        }
Пример #3
0
        public ActionResult SearchResult(string searchTerm, string sortBy)
        {
            IList <Customer> customers = _customerDAL.SearchForCustomers(searchTerm, sortBy);

            CustomerSearchViewModel model = new CustomerSearchViewModel();

            model.MatchingCustomers.AddRange(customers);

            return(View(model));
        }
        public ActionResult SearchResult(string name, int sortBy)
        {
            IList <Customer> returnList = dal.SearchForCustomers(name, sortBy);

            return(View(returnList));
        }
Пример #5
0
        public IActionResult SearchResult(CustomerSearch customerSearch)
        {
            IList <Customer> customers = customerDAL.SearchForCustomers(customerSearch.Name, customerSearch.SortMethod);

            return(View(customers));
        }
        public ActionResult SearchResult(string name, string orderBy)
        {
            var model = dal.SearchForCustomers(name, orderBy);

            return(View("SearchResult", model));
        }
 public IActionResult SearchResult(CustomerSearch model)
 {
     model.SearchResults = dal.SearchForCustomers(model.SearchString, model.SortString);
     return(View(model));
 }
Пример #8
0
        public ActionResult SearchResult(string lastName, string sortBy)
        {
            IList <Customer> customerList = dal.SearchForCustomers(lastName, sortBy);

            return(View(customerList));
        }