public ActionResult ThemKhachHang(KhachHangModel2 model)
        {
            IKhachHangService serviceKH = new KhachHangService();

            serviceKH.ThemKhachHang(baseAddress, "khachhang/addkhachhang", model);
            return(RedirectToAction("DanhSachKhachHang"));
        }
 public ActionResult DangKy(KhachHangModel2 model)
 {
     try
     {
         IKhachHangService serviceKH = new KhachHangService();
         serviceKH.ThemKhachHang(baseAddress, "khachhang/addkhachhang", model);
         return(RedirectToAction("DangNhap"));
     }
     catch (Exception ex)
     {
         ModelState.AddModelError("", "Đã có lỗi xảy ra");
         return(View());
     }
 }