Пример #1
0
 public IActionResult Delete(int id)
 {
     if (sachRepository.Delete(id))
     {
         return(RedirectToAction("Index", "Sach"));
     }
     return(View());
 }
Пример #2
0
 public bool Delete(Sach entity)
 {
     return(_repository.Delete(entity));
 }
Пример #3
0
 public Sach Delete(Sach sach)
 {
     return(sachRepository.Delete(sach));
 }
Пример #4
0
 public bool Delete(string id)
 {
     return(_res.Delete(id));
 }
Пример #5
0
        public void XoaSach(int maS)
        {
            var sach = _sachRepository.GetBy(maS);

            _sachRepository.Delete(sach);
        }