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