public virtual object Get(ItemRequest request) { var response = new ItemRequestResponse(); unitOfWork.DoInTransaction(() => { response.Item = unitOfWork.CurrentSession .QueryOver <Item>() .List() .ToArray() [0] ; } ); return(response); }
public virtual object Get(ItemRequest request) { var response = new ItemRequestResponse(); unitOfWork.DoInTransaction(() => { response.Item = unitOfWork.CurrentSession .QueryOver<Item>() .List() .ToArray() [0] ; } ); return response; }