コード例 #1
0
        public ActionResult Update(UpdateTopicViewModel updateTopicView)
        {
            var updateTopicDto = Mapper.Map <UpdateTopicDto>(updateTopicView);

            _topicService.UpdateTopic(updateTopicDto);

            return(RedirectToAction("Item", new { Id = updateTopicView.TopicId }));
        }
コード例 #2
0
        // PUT api/<controller>/5
        public void Put(UpdateTopicViewModel updateTopicView)
        {
            var updateTopicDto = Mapper.Map <UpdateTopicDto>(updateTopicView);

            _topicService.UpdateTopic(updateTopicDto);
        }