public IActionResult DeleteConfirmed(long id) { if (ModelState.IsValid) { _workshopRepository.DeletMaterial(id); } return(RedirectToAction(nameof(Index))); }