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)); }
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)); }