Exemplo n.º 1
0
        public TopicBriefInfoData GetTopicInfo(object topicId)
        {
            TopicBriefInfoData result = null;

            RepositoryExceptionWrapper.Wrap(GetType(), () =>
            {
                IQuery query = CurrentSession.GetNamedQuery("GetTopicBriefInfo");
                query.SetParameter("TopicId", topicId);
                result = query.UniqueResult <TopicBriefInfoData>();
            });

            return(result);
        }
Exemplo n.º 2
0
        public IServiceQueryResult <TopicBriefInfoData> GetTopicInfo(object topicId)
        {
            TopicBriefInfoData result = Repository.GetTopicInfo(topicId);

            return(ServiceResultFactory.BuildServiceQueryResult <TopicBriefInfoData>(result));
        }