Exemplo n.º 1
0
        public ActionResult Chapter(int id)
        {
            List <Chapter> chapters      = _chapterService.GetListChaptersBySubjectId(id);
            ChaptersListVM chapterListVM = new ChaptersListVM()
            {
                Chapters  = Mapper.Map <List <Chapter>, List <ChapterVM> >(chapters),
                SubjectId = id
            };

            return(View(chapterListVM));
        }