public bool UpdateAirline(string code3, string Code4, string Eng_Name, string Pers_Name, short Type, int Country, string Original_code3, string usr, string pass) { if (authenticate(usr, pass, 40) == false) { return(false); } try { AirlineTableAdapter u = new AirlineTableAdapter(); u.UpdateQuery(code3, Code4, Eng_Name, Pers_Name, Type, Country, Original_code3); } catch (Exception e) { return(false); } return(true); }
public bool InsertAirline(string code3, string Code4, string Eng_Name, string Pers_Name, short Type, int Country, string usr, string pass) { if (authenticate(usr, pass, 39) == false) { return(false); } try { AirlineTableAdapter u = new AirlineTableAdapter(); u.Insert(code3, Code4, Eng_Name, Pers_Name, Type, Country); } catch (Exception e) { return(false); } return(true); }
public bool DeleteAirline(string Original_code3, string usr, string pass) { if (authenticate(usr, pass, 38) == false) { return(false); } try { AirlineTableAdapter u = new AirlineTableAdapter(); u.DeleteQuery(Original_code3); } catch (Exception e) { return(false); } return(true); }