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")); }
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")); }