Esempio n. 1
0
        public ActionResult UpdateBlog(string blog, string title, string content)
        {
            if (Check())
            {
                return(RedirectToAction("Index", "Login"));
            }

            BlogClient service = new BlogClient();
            MyBlog     stu     = new MyBlog();

            stu.blogNO  = Int32.Parse(blog);
            stu.title   = title;
            stu.content = content;
            string mess = service.UpdateBlog(stu);

            return(RedirectToAction("Update", new { updateblogNO = blog }));
        }