Exemple #1
0
        public void ThemKhachHangMoi(KhachHangDTO khachHangDTO)
        {
            KHACHHANG kh = new KHACHHANG()
            {
                MaKH           = khachHangDTO.MaKH,
                DCKH           = khachHangDTO.DiaChi,
                Email          = khachHangDTO.Email,
                GioiTinh       = khachHangDTO.GioiTinh,
                MaLoaiKH       = khachHangDTO.MaloaiKH,
                NgSinh         = khachHangDTO.NgaySinh,
                SDTKH          = khachHangDTO.Sdt,
                TenKH          = khachHangDTO.TenKH,
                TenDoanhNghiep = khachHangDTO.TenDoanhNghiep
            };

            entity.KHACHHANGs.Add(kh);
            entity.SaveChanges();
        }
Exemple #2
0
 public bool themKhachHang(KHACHHANG KH)
 {
     database.KHACHHANGs.Add(KH);
     return(false);
 }