Ejemplo n.º 1
0
        public ActionResult Edit(CreateIdeaViewDto idea)
        {
            if (ModelState.IsValid)
            {
                _ideaService.UpdatePost(idea);
                return(RedirectToAction(DefaultActions.Index));
            }

            idea = _ideaService.CreatePostModel();
            return(View(idea));
        }