public ErrorType Themlop(string ma, string ten, string makhoi, string siso)
        {
            if (string.IsNullOrEmpty(ten) || string.IsNullOrEmpty(makhoi) || string.IsNullOrEmpty(siso))
            {
                return(ErrorType.KI_TU_RONG);
            }

            if (lopaccess.ThemLop(ma, ten, makhoi, Int32.Parse(siso)))
            {
                return(ErrorType.THANH_CONG);
            }
            return(ErrorType.THAT_BAI);
        }
Beispiel #2
0
 public bool Themlop(string ma, string ten,string makhoi,int siso)
 {
     LopAccess lop = new LopAccess();
     return lop.ThemLop(ma, ten,makhoi,siso);
 }