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 ThemMonHoc(string ma, string ten) { MonHocAccess mh = new MonHocAccess(); return(mh.ThemMonHoc(ma, ten)); }