public async Task <IActionResult> DeleteConfirmed(int id) { var jobCategory = await _jobCategoryService.GetAsync(id); await _jobCategoryService.RemoveAsync(jobCategory); return(RedirectToAction(nameof(Index))); }