예제 #1
0
        public ActionResult GroupEdit(int id, string module, bool grant)
        {
            string [] str = module.Split("_".ToCharArray());

            int moduleId = Convert.ToInt32(str[1]);
            Permissions permisson =(Permissions) Enum.Parse(typeof(Permissions), str[0]);
            PermissionService servie = new PermissionService();

            bool value = servie.EnsurePermssionForGroup(id,moduleId, permisson, grant);
            return Json(true, JsonRequestBehavior.AllowGet);
        }