public DataSet GetComboAirline_types() { Airline_typesTableAdapter a = new Airline_typesTableAdapter(); DataSet ds = new DataSet(); ds.Tables.Add(a.GetCombo()); return(ds); }
public bool InsertAirline_types(string Name, string usr, string pass) { if (authenticate(usr, pass, 13) == false) { return(false); } try { Airline_typesTableAdapter u = new Airline_typesTableAdapter(); u.Insert(Name); } catch (Exception e) { return(false); } return(true); }
public bool UpdateAirline_types(string Name, short Original_ID, string usr, string pass) { if (authenticate(usr, pass, 14) == false) { return(false); } try { Airline_typesTableAdapter u = new Airline_typesTableAdapter(); u.UpdateQuery(Name, Original_ID); } catch (Exception e) { return(false); } return(true); }