public async Task <Models.Doc> Get(Guid id) { _logger.LogInformation($"download.docs ${id}"); var data = await _repository.GetByIdAsync(id); if (data == null) { throw new ClientFriendlyException($"Invalid document {id}"); } return(data); }