public IActionResult Delete(int id) { if (sachRepository.Delete(id)) { return(RedirectToAction("Index", "Sach")); } return(View()); }
public bool Delete(Sach entity) { return(_repository.Delete(entity)); }
public Sach Delete(Sach sach) { return(sachRepository.Delete(sach)); }
public bool Delete(string id) { return(_res.Delete(id)); }
public void XoaSach(int maS) { var sach = _sachRepository.GetBy(maS); _sachRepository.Delete(sach); }