示例#1
0
        private void DisplayPost()
        {
            var postId = Convert.ToInt32(Request.QueryString["id"]);
            var post   = _postRepository.GetPost(postId);

            PostBody.Text  = post.Body;
            PostTitle.Text = post.Title;
        }
示例#2
0
        private void DisplayPost()
        {
            var  postId = Request.QueryString["id"];
            Post post   = _postRepository.GetPost(postId);

            PostBody.Text  = post.Body;
            PostTitle.Text = post.Title;
        }