public IActionResult DeleteConfirmed(int id)
        {
            var batch = _iBatchManager.GetById(id);

            _iBatchManager.Remove(batch);

            return(RedirectToAction(nameof(Index)));
        }
Ejemplo n.º 2
0
        public IActionResult DeleteConfirmed(long id)
        {
            var course = _iBatchManager.GetById(id);

            _iBatchManager.Remove(course);

            return(RedirectToAction(nameof(Index)));
        }