Exemplo n.º 1
0
        public XOFFOperationResult Delete(TIdentifier id)
        {
            var repositoryResult = _repository.Delete(id);

            if (!repositoryResult.Success)
            {
                return(repositoryResult.ToOperationResult());
            }
            var queueResult = _changeQueue.QueueDelete(repositoryResult.Result.LocalId, repositoryResult.Result.RemoteId);

            if (!queueResult.Success)
            {
                return(queueResult);
            }
            return(XOFFOperationResult.CreateSuccessResult("Success"));
        }
Exemplo n.º 2
0
 public void Delete(TIdentifier id)
 {
     _repository.Delete(id);
     _changeQueue.QueueDelete(id);
 }