示例#1
0
 public void SetButton(SetButtonDto model)
 {
     foreach (var permissionId in model.SelectedPermissionIds)
     {
         var entity = new ModulePermission()
         {
             PermissionId = permissionId,
             ModuleId     = model.ModuleId
         };
         _modulePermissionRepository.Insert(entity);
     }
 }
        public ActionResult SetButton(SetButtonDto dto)
        {

            _moduleService.SetButton(dto);
            return Json(1, JsonRequestBehavior.AllowGet);
        }
        public void SetButton(SetButtonDto model)
        {
            foreach (var permissionId in model.SelectedPermissionIds)
            {
                var entity = new ModulePermission()
                {
                    PermissionId = permissionId,
                    ModuleId = model.ModuleId
                };
                _modulePermissionRepository.Insert(entity);
            }



        }