public int Insert(BuybackVehicle poco) { using (var connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ABS-SQL"].ConnectionString)) { return (int)connection.Insert(poco); } }
public int Process(BuybackVehicle BuybackVehicle) { this.vehicle = BuybackVehicle; using (var transaction = new TransactionScope()) { using (connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ABS-SQL"].ConnectionString)) { doProcess(); } transaction.Complete(); } return buybackId; }
public int ProcessInsert(BuybackVehicle vehicle) { return absBuybackInserter.Process(vehicle); }
public int Delete(BuybackVehicle poco) { throw new NotImplementedException(); }
public bool Update(BuybackVehicle poco) { throw new NotImplementedException(); }