Exemplo n.º 1
0
        internal List <TDto> GetBlocksInfo <TDto>(IDataConverter <BlockInfoData, TDto> converter)
            where TDto : class
        {
            IBlockService service = UnitOfWork.GetService <IBlockService>();
            var           query   = service.GetBlocksInfo();

            if (query.HasResult)
            {
                return(query.DataToDtoList(converter).ToList());
            }

            return(null);
        }