public IActionResult DangKy() { TinhThanhBUS tinhthanhbus = new TinhThanhBUS(); List <TinhThanh> list = tinhthanhbus.GetTinhThanhs(); return(PartialView("pDangKy", list)); }
public IActionResult ThongTinDiaChi() { string sessionval = HttpContext.Session.GetString("TenDangNhap"); TaiKhoanBUS taikhoanbus = new TaiKhoanBUS(); TaiKhoan taikhoan = new TaiKhoan(); if (sessionval != "" && sessionval != null) { taikhoan = taikhoanbus.CheckTaiKhoan(sessionval); } else { taikhoan = null; } HangSanPhamBUS hangsanphambus = new HangSanPhamBUS(); List <HangSanPham> hang = hangsanphambus.GetHangSanPhams(); TinhThanhBUS tinhthanhbus = new TinhThanhBUS(); List <TinhThanh> tinhthanh = tinhthanhbus.GetTinhThanhs(); DiaChiBUS diachibus = new DiaChiBUS(); List <DiaChi> diachi = new List <DiaChi>(); if (taikhoan != null) { diachi = diachibus.GetDiaChisCus(taikhoan.TenDangNhap); } ViewBag.Hang = hang; ViewBag.TinhThanh = tinhthanh; ViewBag.DiaChi = diachi; return(View(taikhoan)); }
public IActionResult Index(string thongbao, int?pagenumber) { //Thông báo if (thongbao != null) { ViewBag.ThongBao = thongbao; } //Trang pageNumber = pagenumber ?? 1; //List TinhThanhBUS TinhThanh = new TinhThanhBUS(); List <TinhThanh> list = TinhThanh.GetTinhThanhs(pageNumber, pageSize); List <TinhThanh> tong = TinhThanh.GetTinhThanhs(); //ViewBag ViewBag.TongTrang = TongTrang(tong); ViewBag.TrangHienTai = pageNumber; ViewBag.TrangThai = "index"; return(View(list)); }
public IActionResult Index(string thongbao) { //Thông báo if (thongbao != null) { ViewBag.ThongBao = thongbao; } TinhThanhBUS tinhthanhbus = new TinhThanhBUS(); List <TinhThanh> list = tinhthanhbus.GetTinhThanhs(); return(View(list)); }
public IActionResult ThongTinDiaChi() { string sessionval = HttpContext.Session.GetString("TenDangNhap"); TaiKhoanBUS taikhoanbus = new TaiKhoanBUS(); TaiKhoan taikhoan = new TaiKhoan(); if (sessionval != "" && sessionval != null) { taikhoan = taikhoanbus.CheckTaiKhoan(sessionval); } else { taikhoan = null; } TinhThanhBUS tinhthanhbus = new TinhThanhBUS(); List <TinhThanh> tinhthanh = tinhthanhbus.GetTinhThanhs(); ViewBag.TinhThanh = tinhthanh; return(View(taikhoan)); }