Exemplo n.º 1
0
        public static void PpcReload()
        {
            var context = new IPTV2Entities();
            var service = new GomsTfcTv();

            // get transaction
            // List<PpcReloadTransaction> ts = context.Transactions.Where(t => t is PpcReloadTransaction && t.GomsTransactionId == null).ToList();
            var trans = context.Transactions.OfType<PpcReloadTransaction>().FirstOrDefault(t => t.GomsTransactionId == null && t.ReloadPpc.PpcType.GomsSubsidiaryId == t.User.GomsSubsidiaryId);
            var resp = service.ReloadWallet(context, trans.User.UserId, trans.TransactionId);
        }