public async Task <IActionResult> DeleteConfirmed(int id) { var step = await _context.Steps.FindAsync(id); await _stepRepository.DeleteStepAsync(step); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); }