Beispiel #1
0
        public ActionResult Update(UpdateSectionListViewModel updateSectionList)
        {
            var newSectionListDto = Mapper.Map <UpdateSectionListDto>(updateSectionList);

            _sectionListService.UpdateSectionList(newSectionListDto);

            return(RedirectToAction("Item", new { Id = updateSectionList.SectionListId }));
        }
Beispiel #2
0
        // PUT api/<controller>/5
        public void Put(UpdateSectionListViewModel updateSectionView)
        {
            var updateSectionDto = Mapper.Map <UpdateSectionListDto>(updateSectionView);

            _sectionListService.UpdateSectionList(updateSectionDto);
        }