public void military_delete(int ID)
 {
     military.Delete(ID);
     Insert_military_GridView.DataBind();
     Update_military_GridView.DataBind();
     Delete_military_GridView.DataBind();
 }
 public military military_insert()
 {
     military.case_id         = Convert.ToInt32(Insert_case_id_txt.Text);
     military.client_id       = Convert.ToInt32(Insert_client_id_txt.Text);
     military.discharge_date  = Convert.ToDateTime(Insert_discharge_date_txt.Text);
     military.enlistment_date = Convert.ToDateTime(Insert_enlistment_date_txt.Text);
     military.military_branch = Insert_military_branch_txt.Text;
     military.serial_num      = Convert.ToInt32(Insert_serial_num_txt.Text);
     military = military.Insert(military);
     Insert_military_GridView.DataBind();
     Update_military_GridView.DataBind();
     Delete_military_GridView.DataBind();
     return(military);
 }
 public military military_update(int ID)
 {
     military                 = military.Select(ID);
     military.military_id     = Convert.ToInt32(Update_military_id_txt.Text);
     military.case_id         = Convert.ToInt32(Update_case_id_txt.Text);
     military.client_id       = Convert.ToInt32(Update_client_id_txt.Text);
     military.discharge_date  = Convert.ToDateTime(Update_discharge_date_txt.Text);
     military.enlistment_date = Convert.ToDateTime(Update_enlistment_date_txt.Text);
     military.military_branch = Update_military_branch_txt.Text;
     military.serial_num      = Convert.ToInt32(Update_serial_num_txt.Text);
     military.Update(military);
     Insert_military_GridView.DataBind();
     Update_military_GridView.DataBind();
     Delete_military_GridView.DataBind();
     return(military);
 }