示例#1
0
        public IActionResult FilterOptions(ServiceViewModel service)
        {
            var listOfCarriers = _serviceService.FilteredList(Mapper.Map <ServiceViewModel, ServiceDto>(service));

            TempData.Put("carriers", Mapper.Map <IEnumerable <FilteredListDto>, IEnumerable <FilteredListViewModel> >(listOfCarriers));

            return(RedirectToAction("FilteredList", "Carrier"));
        }
示例#2
0
        public ActionResult FilterOptions(ServiceViewModel property)
        {
            var listOfCarriers = _serviceService.FilteredList(Mapper.Map <ServiceViewModel, ServiceDTO>(property));

            TempData["carriers"] = Mapper.Map <IEnumerable <FilteredListDTO>, IEnumerable <FilteredListViewModel> >(listOfCarriers);

            return(RedirectToAction("FilteredList", "Carrier"));
        }