예제 #1
0
        public ActionResult Create([Bind(Include = "NewID,ClassesName,Title,Author,Original,Content")] NewsDetails newsDetails)
        {
            if (ModelState.IsValid)
            {
                SQLHelper.AddNews(newsDetails);
                return(RedirectToAction("Manager"));
            }

            return(View(newsDetails));
        }