public ActionResult Index(int?categoryId) { var result = Mapper.Map <List <SlideshowViewModel> >(_slideshowService.GetAll()); return(View(result)); }
public ActionResult Slideshow() { var slideshow = Mapper.Map <List <SlideshowViewModel> >(_slideshowService.GetAll()); return(PartialView("_Slideshow", slideshow)); }