public static void AddLH (LichHoc lt, SQLiteConnection connection) { DataProvider dtb = new DataProvider (connection); if (dtb.GetLH_Ma (lt.MaMH) == null) { dtb.AddLH (lt); } }
public static bool AddLH (LichHoc lh, SQLiteConnection connection) { DataProvider dtb = new DataProvider (connection); if (dtb.GetLH_Ma (lh.MaMH, lh.NamHoc,lh.HocKy) == null) { dtb.AddLH (lh); return true; } return false; }