public async Task <IActionResult> Delete(string id) { await _catalogService.DeleteCourseAsync(id); return(RedirectToAction(nameof(Index))); }