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

            return(new DeleteAccountResponse());
        }