public ActionResult Post(int id = 1) { var model = new BlogViewModel.PostModel() { Post = service.GetPostById(id) }; return(View(model)); }
public ActionResult Post(int id = 1) { var model = new BlogViewModel.PostModel() {Post = service.GetPostById(id)}; return View(model); }