Exemplo n.º 1
0
        //
        // GET: /Topic/Edit/5432..7890

        public ActionResult Edit(Guid id)
        {
            var topic = _topicRepository.FindBy(id);

            var input = new TopicToInputMapper(_forumRepository).Map(topic);

            return View(input);
        }
Exemplo n.º 2
0
        //
        // GET: /Topic/Create

        public ViewResult Create(Guid forumId)
        {
            var topic = new Topic {Forum = _forumRepository.FindBy(forumId)};

            var input = new TopicToInputMapper(_forumRepository).Map(topic);

            return View(input);
        }