public IHttpActionResult EnabledOrDisable(UpdateSateCommand command)
      {
          var            a = _dxModuleActionService.UpdateStart(command.SearchState, command.IdList);
          DataSourceForm dataSourceForm = new DataSourceForm();

          if (a)
          {
              dataSourceForm.IsSuccess = true;
              dataSourceForm.Message   = "操作成功!";
          }
          else
          {
              dataSourceForm.IsSuccess = false;
              dataSourceForm.Message   = "操作失败!";
          }

          return(Ok(dataSourceForm));
      }
Example #2
0
        public IHttpActionResult EnabledOrDisable(UpdateSateCommand command)
        {
            var            a = _iAppService.UpdateStart(command.SearchState, command.IdList);
            DataSourceForm dataSourceForm = new DataSourceForm();

            if (a)
            {
                dataSourceForm.IsSuccess = true;
                dataSourceForm.Message   = "操作成功!";
                _logFactory.Logger.OperateLog("一键启用或者禁用应用", "操作人员" + UserContext.LoginName + ",应用ID为" + command.IdList + "");
            }
            else
            {
                dataSourceForm.IsSuccess = false;
                dataSourceForm.Message   = "操作失败!";
            }

            return(Ok(dataSourceForm));
        }