public void DisableProductOwner(DisableProductOwnerCommand command)
        {
            var tenantId = new TenantId(command.TenantId);

            ApplicationServiceLifeCycle.Begin();
            try
            {
                var productOwner = this.productOwnerRepository.Get(tenantId, command.Username);
                if (productOwner != null)
                {
                    productOwner.Disable(command.OccurredOn);
                    this.productOwnerRepository.Save(productOwner);
                }
                ApplicationServiceLifeCycle.Success();
            }
            catch (Exception ex)
            {
                ApplicationServiceLifeCycle.Fail(ex);
            }
        }
 public void DisableProductOwner(DisableProductOwnerCommand command)
 {
     var tenantId = new TenantId(command.TenantId);
     ApplicationServiceLifeCycle.Begin();
     try
     {
         var productOwner = this.productOwnerRepository.Get(tenantId, command.Username);
         if (productOwner != null)
         {
             productOwner.Disable(command.OccurredOn);
             this.productOwnerRepository.Save(productOwner);
         }
         ApplicationServiceLifeCycle.Success();
     }
     catch (Exception ex)
     {
         ApplicationServiceLifeCycle.Fail(ex);
     }
 }