public void ClientWPets_delete(int ID)
 {
     ClientWPets.Delete(ID);
     Insert_ClientWPets_GridView.DataBind();
     Update_ClientWPets_GridView.DataBind();
     Delete_ClientWPets_GridView.DataBind();
 }
 public ClientWPets ClientWPets_insert()
 {
     ClientWPets.Pet_Record_ID = Convert.ToInt32(Insert_Pet_Record_ID_txt.Text);
     ClientWPets.Client_id     = Convert.ToInt32(Insert_Client_id_txt.Text);
     ClientWPets.Location_ID   = Convert.ToInt32(Insert_Location_ID_txt.Text);
     ClientWPets.cp_Date       = Convert.ToDateTime(Insert_cp_Date_txt.Text);
     ClientWPets.ownership     = Insert_ownership_txt.Text;
     ClientWPets = ClientWPets.Insert(ClientWPets);
     Insert_ClientWPets_GridView.DataBind();
     Update_ClientWPets_GridView.DataBind();
     Delete_ClientWPets_GridView.DataBind();
     return(ClientWPets);
 }
 public ClientWPets ClientWPets_update(int ID)
 {
     ClientWPets = ClientWPets.Select(ID);
     ClientWPets.CLIENTWPETS_ID = Convert.ToInt32(Update_CLIENTWPETS_ID_txt.Text);
     ClientWPets.Pet_Record_ID  = Convert.ToInt32(Update_Pet_Record_ID_txt.Text);
     ClientWPets.Client_id      = Convert.ToInt32(Update_Client_id_txt.Text);
     ClientWPets.Location_ID    = Convert.ToInt32(Update_Location_ID_txt.Text);
     ClientWPets.cp_Date        = Convert.ToDateTime(Update_cp_Date_txt.Text);
     ClientWPets.ownership      = Update_ownership_txt.Text;
     ClientWPets.Update(ClientWPets);
     Insert_ClientWPets_GridView.DataBind();
     Update_ClientWPets_GridView.DataBind();
     Delete_ClientWPets_GridView.DataBind();
     return(ClientWPets);
 }