コード例 #1
0
        public ActionResult GetBlogPost(int id)
        {
            //TODO: check id is valid
            BlogPost        existingPost  = _blogServices.GetBlogPost(id);
            List <Category> allCategories = _blogServices.GetAllCategories();

            var model = WebServices.ConvertBlogPostToVeiwModel(existingPost, allCategories);

            return(View(model));
        }