public IActionResult Get(Guid id) { var model = new PalestraPalestranteViewModel(_palestraAppService.GetById(id)); model.Palestrante = _palestranteAppService.GetById(model.PalestranteId); return(Response(model)); }
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)); }