public IActionResult Delete(int id) { var emp = lopHocRepository.Get(id); if (emp != null) { lopHocRepository.Delete(emp.LopHocId); return(RedirectToAction("Index")); } return(View()); }
public bool Delete(string id) { return(_res.Delete(id)); }