示例#1
0
        public ActionResult ShowDelivery(string search)
        {
            using (var db = new ADProjectDb())
            {
                List <ViewDelivery> viewDeliveries = deliveryService.GetViewDeliveryList(db);

                // Filter if there is a search term passed to method

                viewDeliveries = deliveryService.FilterViewDeliveryListBySearch(db, search, viewDeliveries);

                ViewBag.ViewDeliveryList = viewDeliveries;
            }
            return(View());
        }