Esempio n. 1
0
        // GET: Admin/CarDiagram
        public ActionResult Index()
        {
            var carDiagrams = _carDiagramService.GetList();

            ViewBag.CarDiagrams = new SelectList(carDiagrams, "IdCarDiagram", "Name");

            return(View(new FilterCarModel()));
        }
 public PartialViewResult CarDiagramsList(int page = 1)
 {
     var model = _mapper.Map<IEnumerable<CarDiagramItemModel>>(_carDiagramService.GetList())
                     .ToPagedList(page, _pageSize);
     return PartialView(model);
 }