Example #1
0
 public void Reject()
 {
     if (Id == null)
     {
         throw new Exception("Offer does not have Id");
     }
     OfferReply = new OfferDenial {
         RepliedOn = DateTime.UtcNow
     };
     EventBus.Instance.Publish(GetType(), Id, new Rejected {
         Offer = this
     });
 }
Example #2
0
 public void Reject()
 {
     if (Id == null) throw new Exception("Offer does not have Id");
     OfferReply = new OfferDenial{ RepliedOn = DateTime.UtcNow };
     EventBus.Instance.Publish(GetType(), Id, new Rejected { Offer = this });
 }
Example #3
0
 public void Accept()
 {
     if (Id == null) throw new Exception("Offer does not have Id");
     OfferReply = new OfferAcceptance{ RepliedOn = DateTime.UtcNow };
     EventBus.Instance.PublishAsync(GetType(), Id, new Accepted { Offer = this });
 }