public void deceased_delete(int ID)
 {
     deceased.Delete(ID);
     Insert_deceased_GridView.DataBind();
     Update_deceased_GridView.DataBind();
     Delete_deceased_GridView.DataBind();
 }
 public deceased deceased_insert()
 {
     deceased.date_of_autopsy   = Convert.ToDateTime(Insert_date_of_autopsy_txt.Text);
     deceased.external_exam     = Insert_external_exam_txt.Text;
     deceased.identifying_marks = Insert_identifying_marks_txt.Text;
     deceased.internal_exam     = Insert_internal_exam_txt.Text;
     deceased.reason_of_death   = Insert_reason_of_death_txt.Text;
     deceased.time_of_death     = Convert.ToDateTime(Insert_time_of_death_txt.Text);
     deceased = deceased.Insert(deceased);
     Insert_deceased_GridView.DataBind();
     Update_deceased_GridView.DataBind();
     Delete_deceased_GridView.DataBind();
     return(deceased);
 }
 public deceased deceased_update(int ID)
 {
     deceased                   = deceased.Select(ID);
     deceased.deceased_id       = Convert.ToInt32(Update_deceased_id_txt.Text);
     deceased.date_of_autopsy   = Convert.ToDateTime(Update_date_of_autopsy_txt.Text);
     deceased.external_exam     = Update_external_exam_txt.Text;
     deceased.identifying_marks = Update_identifying_marks_txt.Text;
     deceased.internal_exam     = Update_internal_exam_txt.Text;
     deceased.reason_of_death   = Update_reason_of_death_txt.Text;
     deceased.time_of_death     = Convert.ToDateTime(Update_time_of_death_txt.Text);
     deceased.Update(deceased);
     Insert_deceased_GridView.DataBind();
     Update_deceased_GridView.DataBind();
     Delete_deceased_GridView.DataBind();
     return(deceased);
 }