public void Shelter_delete(int ID)
 {
     Shelter.Delete(ID);
     Insert_Shelter_GridView.DataBind();
     Update_Shelter_GridView.DataBind();
     Delete_Shelter_GridView.DataBind();
 }
 public Shelter Shelter_insert()
 {
     Shelter.Address_ID   = Convert.ToInt32(Insert_Address_ID_txt.Text);
     Shelter.Shelter_Type = Insert_Shelter_Type_txt.Text;
     Shelter.Max_Capacity = Convert.ToInt32(Insert_Max_Capacity_txt.Text);
     Shelter.AllowsPets   = Insert_AllowsPets_txt.Text;
     Shelter = Shelter.Insert(Shelter);
     Insert_Shelter_GridView.DataBind();
     Update_Shelter_GridView.DataBind();
     Delete_Shelter_GridView.DataBind();
     return(Shelter);
 }
 public Shelter Shelter_update(int ID)
 {
     Shelter              = Shelter.Select(ID);
     Shelter.Shelter_ID   = Convert.ToInt32(Update_Shelter_ID_txt.Text);
     Shelter.Address_ID   = Convert.ToInt32(Update_Address_ID_txt.Text);
     Shelter.Shelter_Type = Update_Shelter_Type_txt.Text;
     Shelter.Max_Capacity = Convert.ToInt32(Update_Max_Capacity_txt.Text);
     Shelter.AllowsPets   = Update_AllowsPets_txt.Text;
     Shelter.Update(Shelter);
     Insert_Shelter_GridView.DataBind();
     Update_Shelter_GridView.DataBind();
     Delete_Shelter_GridView.DataBind();
     return(Shelter);
 }