public bool UpdateAirplane_Model(string Name, short Capacity, int MTOW, int Weight, int Original_ID, string usr, string pass) { if (authenticate(usr, pass, 44) == false) { return(false); } try { Airplane_ModelTableAdapter u = new Airplane_ModelTableAdapter(); u.UpdateQuery(Name, Capacity, MTOW, Weight, Original_ID); } catch (Exception e) { return(false); } return(true); }
public bool InsertAirplane_Model(string Name, short Capacity, int MTOW, int Weight, string usr, string pass) { if (authenticate(usr, pass, 43) == false) { return(false); } try { Airplane_ModelTableAdapter u = new Airplane_ModelTableAdapter(); u.Insert(Name, Capacity, MTOW, Weight); } catch (Exception e) { return(false); } return(true); }
public bool DeleteAirplane_Model(int Original_ID, string usr, string pass) { if (authenticate(usr, pass, 42) == false) { return(false); } try { Airplane_ModelTableAdapter u = new Airplane_ModelTableAdapter(); u.DeleteQuery(Original_ID); } catch (Exception e) { return(false); } return(true); }