private async void btnConfirm_Click(object sender, RoutedEventArgs e) { var ret = await proxy.RemoveMessage <OneResult <int> >("v1/oa/projstaff/" + Staff.Id + "/" + ((DateTime)dpStop.SelectedDate).ToString("yyyy-MM-dd"), null);//, new { id = Staff.Id, stop = (DateTime)dpStop.SelectedDate }); if (ret.HttpStatusCode == System.Net.HttpStatusCode.OK) { MessageBox.Show("移除人员成功!"); this.Close(); } else { MessageBox.Show("移除人员失败!"); } }