Exemplo n.º 1
0
 protected void Payment()
 {
     //PaymentDue
     var context = new AdDatabaseModel.AdDatabaseEntities();
     var advertiserPaymentDue = new AdDatabaseModel.AdvertiserPaymentDue
                                    {
                                        AdvertiserID = GetUserID(),
                                        PaymentDueID = Helpers.Utility.GetPaymentID(),
                                        AdID = GetTempAdID(),
                                        AdAmount = PaymentDue(),
                                        Date = DateTime.Now.Date,
                                        CurrencyCode = "USA",
                                        PaymentDue = PaymentDue()
                                    };
     context.AddToAdvertiserPaymentDues(advertiserPaymentDue);
     context.SaveChanges();
 }
Exemplo n.º 2
0
        protected void Payment()
        {
            var context = new AdDatabaseModel.AdDatabaseEntities();

             //If exisiting Payment Exist
            //PaymentDue
            var advertiserPaymentDue = new AdDatabaseModel.AdvertiserPaymentDue
                                           {
                                               AdvertiserID = GetUserID(),
                                               PaymentDueID = Helpers.Utility.GetPaymentID(),
                                               AdID = GetTempAdID(),
                                               AdAmount = PaymentDue(),
                                               Date = DateTime.Now.Date,
                                               CurrencyCode = "USA",
                                               PaymentDue = PaymentDue(),
                                               Status = Resources.Resource.Pending.ToString(CultureInfo.InvariantCulture),
                                               PaymentProcess = false
                                           };
            context.AddToAdvertiserPaymentDues(advertiserPaymentDue);
            context.SaveChanges();
        }