public void UpdateAirCraft(AirCraft data) { _AdoTemplate.ExecuteNonQuery(System.Data.CommandType.Text, "update cargoaircraft set kode='" + data.Kode + "', nama='" + data.Nama + "' where guid = '" + data.Guid + "'"); }
public void AddAirCraft(AirCraft data) { _AdoTemplate.ExecuteNonQuery(System.Data.CommandType.Text, "insert into cargoaircraft(kode, nama, guid) values ('" + data.Kode + "', '" + data.Nama + "','" + Guid.NewGuid().ToString() + "')"); }