public IActionResult Get(Guid id)
        {
            var model = new PalestraPalestranteViewModel(_palestraAppService.GetById(id));

            model.Palestrante = _palestranteAppService.GetById(model.PalestranteId);

            return(Response(model));
        }
Beispiel #2
0
        public IActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var model = new PalestraPalestranteViewModel(_palestraAppService.GetById(id.Value));

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

            model.Palestrante = _palestranteAppService.GetById(model.PalestranteId);

            return(View(model));
        }