Ejemplo n.º 1
0
        public async Task <ActionResult <ExameViewModel> > GetById(Guid id)
        {
            var exame = await _exameRepository.GetByIdAsync(id);

            var result = new ExameViewModel
            {
                Id        = exame.Id,
                Descricao = exame.Descricao,
                Preco     = exame.Preco
            };

            return(Ok(result));
        }