Esempio n. 1
0
        public async Task <IActionResult> GetAll()
        {
            var lectures = await _lectureService.GetAllLectures();

            return(Ok(lectures));
        }
Esempio n. 2
0
 // GET: Lectures
 public IActionResult Index()
 {
     return(View(_lectureService.GetAllLectures()));
 }