Exemplo n.º 1
0
        private void insertCustomerBonus(CUSTOMER customer)
        {
            BONUS b = new BONUS()
            {
                CustomerID     = customer.InvitedFrom.Value,
                DateAssigned   = DateTime.Today,
                Validity       = DateTime.Today.AddMonths(2),
                Description    = "Per ftesen e " + customer.Email,
                Value          = Configuration.BonusValue,
                ValueRemainder = Configuration.BonusValue
            };

            _bonusDAO.Insert(b);
        }
Exemplo n.º 2
0
 public void Insert(BONUS Bonus)
 {
     _bonusDAO.Insert(Bonus);
     Context.SaveChanges();
 }