public Task DeleteAsync(int customEntityId) { var command = new DeleteCustomEntityCommand() { CustomEntityId = customEntityId }; return(ExtendableContentRepository.ExecuteCommandAsync(command)); }
public Task DeleteCustomEntityAsync(int customEntityId, IExecutionContext executionContext = null) { var command = new DeleteCustomEntityCommand() { CustomEntityId = customEntityId }; return(_commandExecutor.ExecuteAsync(command, executionContext)); }