コード例 #1
0
        private void UpdateOperatingContext(Commands.V1.OperatingContext.Update cmd)
        {
            OperatingContext operatingContext = _repository.GetOperatingContext(cmd.OperatingContextId);

            if (operatingContext == null)
            {
                throw new InvalidOperationException($"OperatingContext with id {cmd.OperatingContextId} cannot be found");
            }

            _repository.UpdateOperatingContext(operatingContext);
        }