Пример #1
0
        public ActionResult AddNews(FormCollection form)
        {
            RepositoryOBTRS db     = new RepositoryOBTRS();
            Boolean         active = false;

            if (form.Get("Active") != "false")
            {
                active = true;
            }
            db.AddNews(form.Get("Title"), form.Get("RichTextEditor"), active);
            return(Redirect("/CMS/NewsManagement/"));
        }