示例#1
0
        public ActionResult Edit(int id)
        {
            var post = _ideaService.Find(id);

            if (post == null)
            {
                return(HttpNotFound());
            }
            var postViewModel = _ideaService.MapPost(post);

            return(View(postViewModel));
        }