public string Delete(DTODieuKienBaoQuan data) { try { DAODieuKienBaoQuan DKBQ = new DAODieuKienBaoQuan(); return(DKBQ.Delete(data)); } catch (Exception e) { return("Lỗi ngoại lệ: BUSHoatChat -> Delete: " + e.Message); } }
public string Insert(ref DTODieuKienBaoQuan data) { try { DAODieuKienBaoQuan DKBQ = new DAODieuKienBaoQuan(); return(DKBQ.Insert(ref data)); } catch (Exception e) { return(@"Lỗi ngoại lệ : BUSHoatChat -> Insert : " + e.Message); } }
public string GetAll(ref DataTable data) { try { DAODieuKienBaoQuan daoHoatChat = new DAODieuKienBaoQuan(); string result = daoHoatChat.GetAll(ref data); if (result == "SUCCESS") { if (data != null && data.Rows.Count > 0) { data.Columns.Add("RANKINDEX", typeof(int)); for (int i = 0; i < data.Rows.Count; i++) { data.Rows[i]["RANKINDEX"] = i + 1; } } } return(result); } catch (Exception e) { return(@"Lỗi ngoại lệ : BUSHoatChat ->GetAll : " + e.Message); } }