public int update(int id, string name, string type, string fuelintake, string engine, string altitude) { DataHandling data = new DataHandling(); int affected = data.UpdattInfo(id, name, type, fuelintake, engine, altitude); return(affected); }
public int delete(int ID) { DataHandling data = new DataHandling(); int affected = data.DeletetInfo(ID); return(affected); }
public int insert(string name, string type, string fuelintake, string engine, string altitude) { DataHandling data = new DataHandling(); int affected = data.InsertInfo(name, type, fuelintake, engine, altitude); return(affected); }
public List <FlightDetails> GetFlight() { List <FlightDetails> Mylist = new List <FlightDetails>(); DataHandling dh = new DataHandling(); DataSet data = dh.ReadData(FlightID); foreach (DataRow item in data.Tables["tblFlightSimulator"].Rows) { Mylist.Add(new FlightDetails(int.Parse(item[""].ToString()), item[""].ToString(), item[""].ToString(), item[""].ToString(), item["Engine"].ToString(), item["Altitude"].ToString())); } return(Mylist); }