public ActionResult Edit(int id) { var post = _ideaService.Find(id); if (post == null) { return(HttpNotFound()); } var postViewModel = _ideaService.MapPost(post); return(View(postViewModel)); }
public ActionResult Edit(int id) { var post = _ideaService.Find(id); if (post == null) { return(HttpNotFound()); } var postViewModel = _ideaService.MapPost(post); return(View(postViewModel)); }