public JsonResult NewSection() { if (!Permission.PremissionNeed(Request, Response, Session, UserRank.ADMINISTATOR)) { return(Json(false)); } string name = Request["name"]; int sid = Convert.ToInt32(Request["sid"]); Section section = new Section { section_name = name, sid = sid }; return(Json(SectionView.AddSection(section))); }