示例#1
0
 public DeleteAccountResponse Delete(DeleteAccount request)
 {
     Db.DeleteById <AccountData>(request.Id);
     using (var mqClient = _messageService.CreateMessageQueueClient())
     {
         mqClient.Publish(new AccountDeletedEvent {
             Id = request.Id
         });
     }
     return(new DeleteAccountResponse());
 }
示例#2
0
        public DeleteAccountResponse Delete(DeleteAccount request)
        {
            var id = Db.DeleteById <AccountData>(request.Id);

            return(new DeleteAccountResponse());
        }