Exemple #1
0
 public void house_choice_delete(int ID)
 {
     house_choice.Delete(ID);
     Insert_house_choice_GridView.DataBind();
     Update_house_choice_GridView.DataBind();
     Delete_house_choice_GridView.DataBind();
 }
Exemple #2
0
 public house_choice house_choice_insert()
 {
     house_choice.house_id                       = Convert.ToInt32(Insert_house_id_txt.Text);
     house_choice.address_id                     = Convert.ToInt32(Insert_address_id_txt.Text);
     house_choice.house_choice_bathrooms         = Convert.ToInt32(Insert_house_choice_bathrooms_txt.Text);
     house_choice.house_choice_comments          = Insert_house_choice_comments_txt.Text;
     house_choice.house_choice_contact_person_id = Convert.ToInt32(Insert_house_choice_contact_person_id_txt.Text);
     house_choice.house_choice_laundry           = Insert_house_choice_laundry_txt.Text;
     house_choice.house_choice_no_floors         = Convert.ToInt32(Insert_house_choice_no_floors_txt.Text);
     house_choice.house_choice_parking           = Insert_house_choice_parking_txt.Text;
     house_choice.house_choice_rent              = Convert.ToDecimal(Insert_house_choice_rent_txt.Text);
     house_choice.house_choice_type              = Insert_house_choice_type_txt.Text;
     house_choice.house_choice_units_avail       = Convert.ToInt32(Insert_house_choice_units_avail_txt.Text);
     house_choice = house_choice.Insert(house_choice);
     Insert_house_choice_GridView.DataBind();
     Update_house_choice_GridView.DataBind();
     Delete_house_choice_GridView.DataBind();
     return(house_choice);
 }