Exemplo n.º 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());
 }
Exemplo n.º 2
0
        public DeleteAccountResponse Delete(DeleteAccount request)
        {
            var id = Db.DeleteById <AccountData>(request.Id);

            return(new DeleteAccountResponse());
        }