Exemple #1
0
        public IActionResult List()
        {
            IEnumerable <Talk> allTalks = service.GetAllTalks();
            var talkDto = mapper.Map <IEnumerable <TalkDto> >(allTalks);

            return(View(talkDto));
        }
Exemple #2
0
        public IActionResult List()
        {
            var allTalks = service.GetAllTalks();
            var model    = mapper.Map <IEnumerable <TalkDto> >(allTalks);

            return(View(model));
        }
Exemple #3
0
        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);
        }
Exemple #5
0
 public IEnumerable <Talk> Get()
 {
     return(talkServices.GetAllTalks());
 }
Exemple #6
0
        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));
        }