// Returns a list of Projections to the user given a GetProjectionsRequest (which is empty) public List<Projection> Get(GetProjectionsRequest request) { // Notice we’re passing “Db” as a parameter to ProjectionDataProvider, // this Db variable is provided by the IOC Container we set up in // the ApplicationHost.Configure method. ProjectionDataWorker pdw = new ProjectionDataWorker(Db); return pdw.GetProjectionList(); }
// Returns a list of Projections to the user given a GetProjectionsRequest (which is empty) public List <Projection> Get(GetProjectionsRequest request) { // Notice we’re passing “Db” as a parameter to ProjectionDataProvider, // this Db variable is provided by the IOC Container we set up in // the ApplicationHost.Configure method. ProjectionDataWorker pdw = new ProjectionDataWorker(Db); return(pdw.GetProjectionList()); }