public ActionResult AddService(FormCollection form) { RepositoryOBTRS db = new RepositoryOBTRS(); Boolean active = false; if (form.Get("Active") != "false") { active = true; } db.AddService(form.Get("Title"), form.Get("RichTextEditor"), active); return(Redirect("/CMS/ServicesManagement/")); }