public static int UpdateAircraft(object aircraftOBJ) { Aircrafts aircraft = new Aircrafts(); aircraft.Clone(aircraftOBJ); aircraft.Update(); return(aircraft.Id); }