public async Task <IActionResult> DeleteCourse(int id) { await CoursesService.Delete(id); return(RedirectToAction(nameof(GetCourses))); }