Exemple #1
0
 public IActionResult Create()
 {
     ViewData["SpeakerId"] = new SelectList(_speakerRepository.GetAllSpeakers(), "Id", "Id");
     return(View());
 }
 public IEnumerable <Speaker> GetAllSpeakers()
 {
     return(repo.GetAllSpeakers());
 }
Exemple #3
0
        public IActionResult Index()
        {
            var speakers = _speakerRepository.GetAllSpeakers();

            return(View(speakers));
        }
        public IActionResult GetAllSpeakers()
        {
            BindingList <SpeakerModel> speakers = _speakerRepository.GetAllSpeakers();

            return(Ok(speakers));
        }