public ErrorType SuaMonHoc(string ma, string ten) { MonHocAccess mhac = new MonHocAccess(); if (string.IsNullOrEmpty(ma) || string.IsNullOrEmpty(ten)) { return(ErrorType.KI_TU_RONG); } return(mhac.SuaMonHoc(ma, ten)); }
public ErrorType ThemMonHoc(string ma, string ten) { MonHocAccess mh = new MonHocAccess(); if (string.IsNullOrEmpty(ma) || string.IsNullOrEmpty(ten)) { return(ErrorType.KI_TU_RONG); } MonHoc monhoc = mh.GetMonHoc(ma); if (monhoc != null) { return(ErrorType.DA_TON_TAI); } return(mh.ThemMonHoc(ma, ten)); }
public bool XoaMonHoc(string maMH) { MonHocAccess mn = new MonHocAccess(); return(mn.XoaMonHoc(maMH)); }
public MonHoc GetMonHoc(string maMonHoc) { MonHocAccess mh = new MonHocAccess(); return(mh.GetMonHoc(maMonHoc)); }
public List <MonHoc> GetListMonHoc() { MonHocAccess monHocAccess = new MonHocAccess(); return(monHocAccess.GetAllMonHoc()); }
public bool SuaMonHoc(string ma, string ten) { MonHocAccess mhac = new MonHocAccess(); return(mhac.SuaMonHoc(ma, ten)); }
public bool ThemMonHoc(string ma, string ten) { MonHocAccess mh = new MonHocAccess(); return(mh.ThemMonHoc(ma, ten)); }