// GET: Chapter public ActionResult Index() { var chapters = _chapterService.GetAllChapter(); AutoMapper.Mapper.CreateMap <ChapterListDto, JesNm.Web.Models.Jes.GetChapterViewModel>(); var chaptersview = AutoMapper.Mapper.Map <List <JesNm.Web.Models.Jes.GetChapterViewModel> >(chapters); return(View(chaptersview)); }