Example #1
0
 public Task ChangeOutcomeWhen(IKey outcomeKey, DateTime when)
 {
     return(Task.Factory.StartNew(() =>
     {
         Outcome outcome = outcomeRepository.Get(outcomeKey);
         outcome.ChangeWhen(when);
         outcomeRepository.Save(outcome);
     }));
 }