public int RegisterPagoEfectivoPayment(RegisterPagoEfectivoPayment registerPagoEfectivoPaymentParameters) { using (var connection = new SqlConnection(connectionString)) { return(connection.RegisterPagoEfectivoPayment(registerPagoEfectivoPaymentParameters)); } }
internal static int RegisterPagoEfectivoPayment(this IDbConnection connection, RegisterPagoEfectivoPayment registerPagoEfectivoPaymentParameters) { return(connection.Query <int>("RegisterPagoEfectivoPayments", registerPagoEfectivoPaymentParameters, commandType: CommandType.StoredProcedure).Single()); }