public ActionResult Update(UpdateTopicViewModel updateTopicView) { var updateTopicDto = Mapper.Map <UpdateTopicDto>(updateTopicView); _topicService.UpdateTopic(updateTopicDto); return(RedirectToAction("Item", new { Id = updateTopicView.TopicId })); }
// PUT api/<controller>/5 public void Put(UpdateTopicViewModel updateTopicView) { var updateTopicDto = Mapper.Map <UpdateTopicDto>(updateTopicView); _topicService.UpdateTopic(updateTopicDto); }