public IQueryable <BaseDocument> GetLinkedDocuments([FromODataUri] int key) { Session = ConnectionHelper.CreateSession(); return(Session.Query <Contract>().AsWrappedQuery().Where(m => m.ID == key).SelectMany(t => t.LinkedDocuments)); }
public HomeController() { db = new UnitOfWork(); }
public IQueryable <Contract> Get() { Session = ConnectionHelper.CreateSession(); return(Session.Query <Contract>().AsWrappedQuery()); }
public SectionController(UnitOfWork unitOfWork) { _unitOfWork = unitOfWork; }