// GET: ExameController/Details/5 public ActionResult Details(int id) { Exame exame = _exameService.Obter(id); Consulta consulta = _consultaService.Obter(exame.IdConsulta); Animal animal = _animalService.Obter(exame.IdAnimal); Tipoexame tipoExame = _tipoexameService.Obter(exame.IdTipoExame); ViewBag.IdConsulta = consulta.Descricao; ViewBag.IdAnimal = animal.Nome; ViewBag.IdTipoExame = tipoExame.Tipo; ExameModel exameModel = _mapper.Map <ExameModel>(exame); return(View(exameModel)); }
public async Task <CustomResponse <Exame> > Get(string ExameId) { return(await _service.Obter(Guid.Parse(ExameId))); }