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

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