Beispiel #1
0
        public ActionResult DeleteControlForPer(ControlModel controlModel)
        {
            IControlService controlService = new ControlService();

            controlService.AddControlForPer(baseAddress, "control/deletecontrolforper", controlModel);

            List <ControlModel> lstControlPer = controlService.GetControlPer(baseAddress, $"control/getcontrolper?perId={controlModel.permissionId}");

            return(Json(lstControlPer));
        }
Beispiel #2
0
        // GET: Control
        public ActionResult GetControlPer(int perId)
        {
            IControlService controlService = new ControlService();

            List <ControlModel> lstControlPer = controlService.GetControlPer(baseAddress, $"control/getcontrolper?perId={perId}");

            //Lay tat ca cac control
            //List<ControlModel> lstControlAll = controlService.GetAllControl(baseAddress,$"control/getallcontrol");
            //ViewBag.LST_ALL_CONTROL = lstControlAll;

            return(Json(lstControlPer));
        }