public ActionResult Update(UpdateSectionListViewModel updateSectionList) { var newSectionListDto = Mapper.Map <UpdateSectionListDto>(updateSectionList); _sectionListService.UpdateSectionList(newSectionListDto); return(RedirectToAction("Item", new { Id = updateSectionList.SectionListId })); }
// PUT api/<controller>/5 public void Put(UpdateSectionListViewModel updateSectionView) { var updateSectionDto = Mapper.Map <UpdateSectionListDto>(updateSectionView); _sectionListService.UpdateSectionList(updateSectionDto); }