Beispiel #1
0
 private void DoSubmitVerify(string content)
 {
     if (CanSubmitVerify())
     {
         if (content == null)
         {
             this.VerifyStatus = AccountVerifyStatus.Submited;
         }
         var verify = new AccountVerify()
         {
             AccountId  = this.ID,
             CreateTime = DateTime.Now,
             Content    = content,
             Status     = this.VerifyStatus,
         };
         this.AccountVerifies.Add(verify);
         DomainEvents.Publish(new SubmitVerifyEvent()
         {
             Account = this, AccountVerify = verify
         });
     }
     else
     {
         throw new SubmitApplyException("当前不允许提交审核");
     }
 }
Beispiel #2
0
 private void DoSubmitVerify(string content)
 {
     if (CanSubmitVerify())
     {
         if (content == null)
         {
             this.VerifyStatus = AccountVerifyStatus.Submited;
         }
         var verify = new AccountVerify()
         {
             AccountId = this.ID,
             CreateTime = DateTime.Now,
             Content = content,
             Status = this.VerifyStatus,
         };
         this.AccountVerifies.Add(verify);
         DomainEvents.Publish(new SubmitVerifyEvent() { Account = this, AccountVerify = verify });
     }
     else
     {
         throw new SubmitApplyException("��ǰ�������ύ���");
     }
 }