예제 #1
0
        public async Task <IActionResult> All()
        {
            try
            {
                var courses = await _repository.All();

                return(Ok(courses));
            }
            catch (Exception)
            {
                throw;
            }
        }