private void btnThongKe_Click(object sender, EventArgs e) { string ngayBatDau = datePickerNgayBatDau.Value.ToString("yyyy-MM-dd"); string ngayKetThuc = datePickerNgayKetThuc.Value.ToString("yyyy-MM-dd"); dtgThongKeHoatDongTheoNgay.DataSource = ThongKe_DAO.ThongKeHoatDongTheoNgay(ngayBatDau, ngayKetThuc); }
//[ResponseType(typeof(List<THONGKE>))] public async Task <IHttpActionResult> GetThongKe(ThongKeDate tkDate) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } ThongKe_DAO tk_DAO = new ThongKe_DAO(); List <THONGKE> results = tk_DAO.getThongKe(tkDate); //return CreatedAtRoute("DefaultApi", new { id = 1 }, results); return(Ok(results)); }