示例#1
0
        public ActionResult LoadDataForComboControlRole(int roleId)
        {
            IControlService controlService = new ControlService();

            List <ControlModel> lstControlRole = controlService.GetControlRole(baseAddress, $"control/getcontrolforrole?roleId={roleId}&&x=1");
            //Lay tat ca cac control
            List <ControlModel> lstControlAll = controlService.GetAllControl(baseAddress, $"control/getallcontrol");

            List <ControlModel> lstControlNotOfPer = lstControlAll.Where(n => !lstControlRole.Select(n1 => n1.id).Contains(n.id)).ToList();

            return(Json(lstControlNotOfPer));
        }