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)); }