예제 #1
0
        public static bool XoaKhoHang(BoPhanDTO bophanxoa)
        {
            bool test = BoPhanDAO.XoaBoPhan(bophanxoa);

            if (test == false)
            {
                return(false);
            }
            return(true);
        }
예제 #2
0
        public static bool SuaBoPhan(BoPhanDTO BoPhanSua)
        {
            if (string.IsNullOrEmpty(BoPhanSua.TenBoPhan))
            {
                return(false);
            }

            bool test = BoPhanDAO.SuaBoPhan(BoPhanSua);

            if (test == false)
            {
                return(false);
            }
            return(true);
        }
예제 #3
0
        public static int ThemBoPhan(BoPhanDTO bophanmoi)
        {
            if (string.IsNullOrEmpty(bophanmoi.TenBoPhan))
            {
                return(-1);
            }

            bool test = BoPhanDAO.ThemBoPhan(bophanmoi);

            if (test == false)
            {
                return(-1);
            }
            return(0);
        }