public IActionResult List() { IEnumerable <Talk> allTalks = service.GetAllTalks(); var talkDto = mapper.Map <IEnumerable <TalkDto> >(allTalks); return(View(talkDto)); }
public IActionResult List() { var allTalks = service.GetAllTalks(); var model = mapper.Map <IEnumerable <TalkDto> >(allTalks); return(View(model)); }
public IActionResult Index() { IEnumerable <Speakers> allSpeakers = speakerService.GetAllSpeakers(); IEnumerable <Workshops> allWorkshops = workshopService.GetAllWorkshops(); IEnumerable <Talks> allTalks = talkService.GetAllTalks(); return(View(allSpeakers)); }
// GET: Editions public ActionResult Index() { IEnumerable <Speakers> allSpeakers = speakerService.GetAllSpeakers(); IEnumerable <Workshops> allWorkshops = workshopService.GetAllWorkshops(); IEnumerable <Talks> allTalks = talkService.GetAllTalks(); return(View(allSpeakers)); //IEnumerable<Editions> allEditions = editionService.GetAllEditions(); //return View(allEditions); }
public IEnumerable <Talk> Get() { return(talkServices.GetAllTalks()); }
public ActionResult <IEnumerable <TalkDto> > GetAll() { var talks = service.GetAllTalks(); return(Ok(mapper.Map <IEnumerable <SpeakerDto> >(talks))); }
// GET: Talks public ActionResult Index() { IEnumerable <Talks> allTalks = talkService.GetAllTalks(); return(View(allTalks)); }