public void location_delete(int ID)
 {
     location.Delete(ID);
     Insert_location_GridView.DataBind();
     Update_location_GridView.DataBind();
     Delete_location_GridView.DataBind();
 }
 public location location_insert()
 {
     location.type          = Insert_type_txt.Text;
     location.city          = Insert_city_txt.Text;
     location.state         = Insert_state_txt.Text;
     location.zip           = Convert.ToInt32(Insert_zip_txt.Text);
     location.county        = Insert_county_txt.Text;
     location.location_desc = Insert_location_desc_txt.Text;
     location.n_long        = Convert.ToDecimal(Insert_n_long_txt.Text);
     location.s_long        = Convert.ToDecimal(Insert_s_long_txt.Text);
     location.e_long        = Convert.ToDecimal(Insert_e_long_txt.Text);
     location.w_long        = Convert.ToDecimal(Insert_w_long_txt.Text);
     location.n_lat         = Convert.ToDecimal(Insert_n_lat_txt.Text);
     location.s_lat         = Convert.ToDecimal(Insert_s_lat_txt.Text);
     location.e_lat         = Convert.ToDecimal(Insert_e_lat_txt.Text);
     location.w_lat         = Convert.ToDecimal(Insert_w_lat_txt.Text);
     location = location.Insert(location);
     Insert_location_GridView.DataBind();
     Update_location_GridView.DataBind();
     Delete_location_GridView.DataBind();
     return(location);
 }
 public location location_update(int ID)
 {
     location               = location.Select(ID);
     location.Location_ID   = Convert.ToInt32(Update_Location_ID_txt.Text);
     location.type          = Update_type_txt.Text;
     location.city          = Update_city_txt.Text;
     location.state         = Update_state_txt.Text;
     location.zip           = Convert.ToInt32(Update_zip_txt.Text);
     location.county        = Update_county_txt.Text;
     location.location_desc = Update_location_desc_txt.Text;
     location.n_long        = Convert.ToDecimal(Update_n_long_txt.Text);
     location.s_long        = Convert.ToDecimal(Update_s_long_txt.Text);
     location.e_long        = Convert.ToDecimal(Update_e_long_txt.Text);
     location.w_long        = Convert.ToDecimal(Update_w_long_txt.Text);
     location.n_lat         = Convert.ToDecimal(Update_n_lat_txt.Text);
     location.s_lat         = Convert.ToDecimal(Update_s_lat_txt.Text);
     location.e_lat         = Convert.ToDecimal(Update_e_lat_txt.Text);
     location.w_lat         = Convert.ToDecimal(Update_w_lat_txt.Text);
     location.Update(location);
     Insert_location_GridView.DataBind();
     Update_location_GridView.DataBind();
     Delete_location_GridView.DataBind();
     return(location);
 }