Beispiel #1
0
 public void ThemThuePhong(DTO_ThuePhong thuePhong)
 {
     var tempThuePhong = JsonConvert.SerializeObject(thuePhong);
     var buffer = Encoding.UTF8.GetBytes(tempThuePhong);
     var byteContent = new ByteArrayContent(buffer);
     byteContent.Headers.ContentType = new MediaTypeHeaderValue("application/json");
     _client.PostAsync("api/roombook", byteContent);
Beispiel #2
0
        private void Frm_ThuePhongModified_Load(object sender, EventArgs e)
        {
            _dTO_ThuePhong = new DTO_ThuePhong();
            _dTO_Phong     = new DTO_Phong();

            _thuePhongFs = new ThuePhongFs();
            _phongFs     = new PhongFs();

            GanDuLieuVaoControl();
        }
        private void Frm_ThanhToan_Load(object sender, EventArgs e)
        {
            _thuePhongFs = new ThuePhongFs();
            _khachHangFs = new KhachHangFs();
            _phongFs     = new PhongFs();

            _dTO_ThuePhong = new DTO_ThuePhong();
            _dTO_KhachHang = new DTO_KhachHang();
            _dTO_Phong     = new DTO_Phong();

            GanDuLieuVaoConTrol();
        }