Ejemplo n.º 1
0
        private void InsertOrderHeaders(out int orderId, out int totalPoints)
        {
            var orderHeader = _DB.OrderHeaders;

            orderHeader.Entity.member_id = this.Member.id;
            orderHeader.Entity.price     = this.TotalPrice;
            orderHeader.Entity.points    = this.TotalPoints;
            orderHeader.Insert();

            orderId     = orderHeader.Entity.id ?? 0;
            totalPoints = orderHeader.Entity.points ?? 0;

            TokensStrategy.Add(this.Member.id, totalPoints);
            MemberStrategy.UpdateMemberWallet(this.Member.id, -this.TotalPrice);
        }
Ejemplo n.º 2
0
 public override void HandleModel()
 {
     MemberStrategy.UpdateMemberWallet(this.Member.id, this.Amount ?? 0);
 }