internal TDto GetBlockInfo <TDto>(object instanceId, IDataConverter <BlockInfoData, TDto> converter) where TDto : class { IBlockService service = UnitOfWork.GetService <IBlockService>(); var query = service.GetBlockInfo(instanceId); if (query.HasResult) { return(query.DataToDto(converter)); } return(null); }