Example #1
0
        public ActionResult <Visita> GetById(int id)
        {
            var visita = _visitaRepository.Find(id);

            if (visita == null)
            {
                return(NotFound());
            }

            return(Ok(new {
                data = visita
            }));
        }