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); }
public override void HandleModel() { MemberStrategy.UpdateMemberWallet(this.Member.id, this.Amount ?? 0); }