public async Task <ValueModel?> Create(ValueModel valueModel) { var value = await _repository.Create(valueModel); _logger.LogDebug("Created value {@value}", value); return(value); }
public async Task <Value> AddValueAsync(Value value) { value.DateCreated = DateTime.UtcNow; //value.DateModified = DateTime.UtcNow; return(await _valueRepository.Create(value)); }