public BlockInfoData GetBlockInfo(object instanceId) { BlockInfoData result = null; RepositoryExceptionWrapper.Wrap(GetType(), () => { ICriteria query = CurrentSession.CreateCriteria <BlockInfoData>(); query.AddExpressionEq <BlockInfoData, object>(o => o.Id, instanceId); result = query.UniqueResult <BlockInfoData>(); }); return(result); }
public IServiceQueryResult <BlockInfoData> GetBlockInfo(object instanceId) { BlockInfoData result = Repository.GetBlockInfo(instanceId); return(ServiceResultFactory.BuildServiceQueryResult <BlockInfoData>(result)); }