private void Log(Terminals_Day_Totals model) { using (TerminalData context = new TerminalData()) { context.InsertTritonDayTotals(model); } }
public void LogTritonDayTotal(HostTotalModel atm, string atmId) { Terminals_Day_Totals dayTotals = new Terminals_Day_Totals { tran_gid = atmId, terminal_id = atm.TerminalId, business_date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), settlement_code = atm.TransactionCode, processed_date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), num_of_cw = atm.NoOfWithdrawals, num_of_tf = atm.NoOfTransfers, num_of_bi = atm.NoOfInquiries, total_dispensed = atm.Settlement / 100m }; Log(dayTotals); }
public void InsertTritonDayTotals(Terminals_Day_Totals dayTotals) { Connection.Execute(dayTotals.ToString()); }