Example #1
0
        public static int addCustomer(KhachHangDTO customer)
        {
            int result = 0;

            if (customer.CongNo == null)
            {
                result = KhachHangDAO.addCustomer(customer);
            }
            else
            {
                string id = CongNoDAO.addDeb(customer.CongNo);
                customer.CongNo.Id = id;
                result             = KhachHangDAO.addCustomer(customer);
            }
            return(result);
        }
Example #2
0
 public static bool XoaCongNo(string macn)
 {
     return(CongNoDAO.XoaCongNo(macn));
 }
Example #3
0
 public static bool ThemCongNo(CONGNO congno)
 {
     return(CongNoDAO.ThemCongNo(congno));
 }
Example #4
0
 public static bool CapNhatCongNo(CONGNO congno)
 {
     return(CongNoDAO.CapNhatCongNo(congno));
 }
Example #5
0
 public static List <CONGNO> LayDanhSachCongNo()
 {
     return(CongNoDAO.LayDanhSachCongNo());
 }
 public static CongNoDTO getDeb(string id) => CongNoDAO.getDeb(id);
 public static int updateDeb(CongNoDTO deb) => CongNoDAO.updateDeb(deb);
 public static string addDeb(CongNoDTO congno) => CongNoDAO.addDeb(congno);