Esempio n. 1
0
        public ErrorType Themkhoilop(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.ThemKhoiLop(ma, ten, ban, manamhoc))
            {
                return(ErrorType.THANH_CONG);
            }
            return(ErrorType.THAT_BAI);
        }
Esempio n. 2
0
        public bool Themkhoilop(string ma, string ten, string ban, string manamhoc)
        {
            KhoiLopAccess kl = new KhoiLopAccess();

            return(kl.ThemKhoiLop(ma, ten, ban, manamhoc));
        }