Ejemplo n.º 1
0
        // GET: Eventos/Details/5
        public IActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var eventoViewModel = _eventoAppService.ObterPorId(id.Value);

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

            return(View(eventoViewModel));
        }
Ejemplo n.º 2
0
 public EventoViewModel Get(Guid id, int version)
 {
     return(_eventoAppService.ObterPorId(id));
 }