示例#1
0
        public virtual object Get(ItemRequest request)
        {
            var response = new ItemRequestResponse();

            unitOfWork.DoInTransaction(() =>
            {
                response.Item = unitOfWork.CurrentSession
                                .QueryOver <Item>()
                                .List()
                                .ToArray()
                                [0]
                ;
            }
                                       );

            return(response);
        }
示例#2
0
        public virtual object Get(ItemRequest request)
        {
            var response = new ItemRequestResponse();

            unitOfWork.DoInTransaction(() =>
            {
                response.Item = unitOfWork.CurrentSession
                    .QueryOver<Item>()
                    .List()
                    .ToArray()
                    [0]
                    ;
            }
                );

            return response;
        }