Exemplo n.º 1
0
            public async Task <Unit> Handle(CreateParameterTranslationCommand request, CancellationToken cancellationToken)
            {
                var parameterTranslation = new ParameterTranslation
                {
                    Id          = 0,
                    ParameterId = request.ParameterId,
                    Description = request.Description,
                    GroupName   = request.GroupName,
                    Notes       = request.Notes,
                    Language    = request.Language
                };

                await _translationRepository.AddParameterTranslationAsync(parameterTranslation);

                await _unitOfWork.CompleteAsync();

                return(Unit.Value);
            }
Exemplo n.º 2
0
 public void RemoveParameterTranslation(ParameterTranslation parameterTranslation)
 {
     ScriptInterpreterContext.Remove(parameterTranslation);
 }
Exemplo n.º 3
0
 public async Task AddParameterTranslationAsync(ParameterTranslation parameterTranslation)
 {
     await ScriptInterpreterContext.AddAsync(parameterTranslation);
 }