Esempio n. 1
0
        public ActionResult _EditRole(string RoleName, int IdLevelRole, string IsActive, int Id = 0)
        {
            var  db   = new RoleBusiness();
            Role item = new Role();

            item.Id       = Id;
            item.RoleName = RoleName;
            item.IsActive = bool.Parse(IsActive);
            item.Level    = IdLevelRole;


            var result = db.EditRoleSystem(item);

            return(Json(new { result }, JsonRequestBehavior.AllowGet));
        }