Пример #1
0
        public ActionResult Delete(int id)
        {
            rs r;

            try
            {
                ThongBao ThongBao = _ThongBaoerv.GetEntry(id);
                _ThongBaoerv.Delete(ThongBao);
                _ThongBaoerv.Save();
                r = rs.T("Ok");
            }
            catch (Exception ex)
            {
                r = rs.F("Lỗi: " + ex.Message);
            }
            return(Json(r, JsonRequestBehavior.DenyGet));
        }
Пример #2
0
 public void Del(int id)
 {
     _thongBaoRepository.Delete(id);
 }