public List <PhuongXa> LayPhuongXa(int maTinhTP, int maQuanHuyen) { var phuongXa = new bs_DiaChi(); var result = phuongXa.GetPhuongXa(maTinhTP, maQuanHuyen); phuongXa.Dispose(); return(result); }
public List <TinhTP> LayTinhTP() { var tinhTP = new bs_DiaChi(); var result = tinhTP.GetTinhTP(); tinhTP.Dispose(); return(result); }
public List <QuanHuyen> LayQuanHuyen(int maTinhTP) { var quanHuyen = new bs_DiaChi(); var result = quanHuyen.GetQuanHuyen(maTinhTP); quanHuyen.Dispose(); return(result); }
public string GetDiaChiDangKy(string diachiNha, int maTP, int MaQuanHuyen, int maPhuongXa) { string result = ""; var action = new bs_DiaChi(); result = action.GetDiaChiDangKy(maTP, MaQuanHuyen, maPhuongXa); if (!string.IsNullOrWhiteSpace(result)) { result = diachiNha + ", " + result; } action.Dispose(); return(result); }