public IActionResult Delete(int Id) { var classes = _classes.GetClasses(Id); if (classes == null) { return(View(nameof(NotFound))); } _classes.DeleteUser(classes); return(RedirectToAction(nameof(Index))); }
public void DeleteUser(int id) { _Iclasses.DeleteUser(id); }