Exemplo n.º 1
0
        public async Task <Option <TraceDto> > GetTraceAsync(int id)
        {
            if (!await _traceRepository.ExistsAsync(t => t.Id == id))
            {
                return(Option.None <TraceDto>());
            }

            var trace = await _traceRepository.GetAsync(id);

            return(TraceToDto(trace).Some());
        }