Exemplo n.º 1
0
        async Task INotificationHandler <IncentiveSubmitted> .Handle(IncentiveSubmitted e, CancellationToken cancellationToken)
        {
            var incentive =
                await db.Incentives
                .SingleAsync(t => t.InternalId == e.Id);

            incentive.IsSubmitted = true;
            incentive.SubmitAt    = e.TimeStamp;

            await db.SaveChangesAsync();
        }
Exemplo n.º 2
0
 private void Apply(IncentiveSubmitted e)
 {
     this.IsSubmitted = true;
 }