예제 #1
0
        public void OnGet()
        {
            int id = Convert.ToInt32(Request.Query["Id"][0]);

            Article = context.Articles.Find(id);
        }
예제 #2
0
 public void OnGet()
 {
     article.Id            = id;
     article               = Context.Articles.Find(article.Id);
     ViewData["parameter"] = "/Article/Edit";
 }