/// <inheritdoc/> public SimpleValue GetValueByKey(string key) { if (key == null) { throw new ArgumentNullException(nameof(key)); } var value = _repository.GetValueByKey(key); if (value == null) { throw new EntityNotFoundException(typeof(SimpleValue)); } return(value); }