public async Task <ValueModel?> Create(ValueModel valueModel)
        {
            var value = await _repository.Create(valueModel);

            _logger.LogDebug("Created value {@value}", value);
            return(value);
        }
Ejemplo n.º 2
0
 public async Task <Value> AddValueAsync(Value value)
 {
     value.DateCreated = DateTime.UtcNow;
     //value.DateModified = DateTime.UtcNow;
     return(await _valueRepository.Create(value));
 }