示例#1
0
        public async Task <IActionResult> DeleteCourseById(int id)
        {
            var courseDelete = await _courseAppService.DeleteCourseById(id);

            var output = await _courseAppService.GetCoursesList();

            output.Remove(courseDelete);
            return(View("CourseList", output));
        }