public static bool XoaKhoHang(BoPhanDTO bophanxoa) { bool test = BoPhanDAO.XoaBoPhan(bophanxoa); if (test == false) { return(false); } return(true); }
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); }
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); }