public ErrorType Suakhoilop(string ma, string ten, string ban, string manamhoc) { KhoiLopAccess kl = new KhoiLopAccess(); if (string.IsNullOrEmpty(ten) || string.IsNullOrEmpty(ban) || string.IsNullOrEmpty(manamhoc)) { return(ErrorType.KI_TU_RONG); } if (kl.SuaKhoiLop(ma, ten, ban, manamhoc)) { return(ErrorType.THANH_CONG); } return(ErrorType.THAT_BAI); }
public bool Suakhoilop(string ma, string ten, string ban, string manamhoc) { KhoiLopAccess kl = new KhoiLopAccess(); return(kl.SuaKhoiLop(ma, ten, ban, manamhoc)); }
public bool XoaKhoilop(string maKL) { KhoiLopAccess kl = new KhoiLopAccess(); return(kl.XoaKhoiLop(maKL)); }
public List <KhoiLop> GetListKhoiLop() { KhoiLopAccess khoilopAccess = new KhoiLopAccess(); return(khoilopAccess.GetAllKhoilop()); }
public string GetMaKhoiLopMax() { KhoiLopAccess ac = new KhoiLopAccess(); return(ac.GetMaKhoiLopMax()); }
public KhoiLop GetKhoiLopTheoNH(string namhoc) { KhoiLopAccess lopaccess = new KhoiLopAccess(); return(lopaccess.GetKhoiLopTheoNH(namhoc)); }
public KhoiLop GetKhoiLop(string maKhoiLop) { KhoiLopAccess lopaccess = new KhoiLopAccess(); return(lopaccess.GetKhoiLop(maKhoiLop)); }
public List <KhoiLop> GetListKhoiLop(string namhoc) { KhoiLopAccess khoilopAccess = new KhoiLopAccess(); return(khoilopAccess.GetAllKhoilop(namhoc)); }
public string GetMaKhoiLop(string tenkl) { KhoiLopAccess klac = new KhoiLopAccess(); return(klac.GetMaKhoiLop(tenkl)); }