public IActionResult Get(Guid id) { var model = new PalestrantePalestrasViewModel(_palestranteAppService.GetById(id)); model.Palestras = _palestraAppService.GetPalestrasByPalestranteId(id).ToList(); return(Response(model)); }
public IActionResult Details(Guid?id) { if (id == null) { return(NotFound()); } var model = new PalestrantePalestrasViewModel(_palestranteAppService.GetById(id.Value)); if (model == null) { return(NotFound()); } model.Palestras = _palestraAppService.GetPalestrasByPalestranteId(id.Value).ToList(); return(View(model)); }