示例#1
0
        public ActionResult Update(UpdateForumViewModel updateData)
        {
            var newForumDataDto = Mapper.Map <UpdateForumDto>(updateData);

            _forumService.UpdateForum(newForumDataDto);

            return(RedirectToAction("List"));
        }
示例#2
0
        // PUT api/<controller>/5
        public void Put(UpdateForumViewModel updateSectionView)
        {
            var updateSectionDto = Mapper.Map <UpdateForumDto>(updateSectionView);

            _forumService.UpdateForum(updateSectionDto);
        }