예제 #1
0
        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));
        }
예제 #2
0
        public MonHoc GetMonHoc(string maMonHoc)
        {
            MonHocAccess mh = new MonHocAccess();

            return(mh.GetMonHoc(maMonHoc));
        }