Beispiel #1
0
        public ActionResult Create(CreateSectionListViewModel createSectionList)
        {
            var newForumDataDto = Mapper.Map <CreateSectionListDto>(createSectionList);

            _sectionListService.CreateSectionList(newForumDataDto);

            return(RedirectToAction("List", "Forum"));
        }
Beispiel #2
0
        // POST api/<controller>
        public void Post(CreateSectionListViewModel createSectionView)
        {
            var creaeSectionDto = Mapper.Map <CreateSectionListDto>(createSectionView);

            _sectionListService.CreateSectionList(creaeSectionDto);
        }