Ejemplo n.º 1
0
        public JsonResult SaveSection()
        {
            if (!Permission.PremissionNeed(Request, Response, Session, UserRank.ADMINISTATOR))
            {
                return(Json(false));
            }

            int     kid     = Convert.ToInt32(Request["kid"]);
            string  name    = Request["name"];
            int     sid     = Convert.ToInt32(Request["sid"]);
            Section section = SectionView.GetSectionById(kid);

            section.section_name = name;
            section.kid          = kid;

            return(Json(SectionView.SaveSection(section)));
        }