예제 #1
0
        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)));
        }