// 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());
        }
 // Deletes a Projection
 public void Delete(ProjectionIDRequest request)
 {
     ProjectionDataWorker pdw = new ProjectionDataWorker(Db);
     pdw.DeleteProjectionByID(request.ProjectionID);
 }
 // Updates an existing Projection
 public Projection Put(ProjectionRequest request)
 { 
     ProjectionDataWorker pdw = new ProjectionDataWorker(Db);
     return pdw.UpdateProjection(request.Projection);
 }
 // Creates a new Projection
 public int Post(ProjectionRequest request)
 { 
     ProjectionDataWorker pdw = new ProjectionDataWorker(Db);
     return pdw.AddProjection(request.Projection);
 }
 // Return a single Projection given their ProjectionID
 public Projection Get(ProjectionIDRequest request)
 {
     ProjectionDataWorker pdw = new ProjectionDataWorker(Db);
     return pdw.GetProjectionByID(request.ProjectionID);
 }
 // Return a list of projections by player last name
 public List<Projection> Get(StringRequest request)
 {
     ProjectionDataWorker pdw = new ProjectionDataWorker(Db);
     return pdw.GetProjectionListByLastName(request.Parameter);
 }
        // Deletes a Projection
        public void Delete(ProjectionIDRequest request)
        {
            ProjectionDataWorker pdw = new ProjectionDataWorker(Db);

            pdw.DeleteProjectionByID(request.ProjectionID);
        }
        // Updates an existing Projection
        public Projection Put(ProjectionRequest request)
        {
            ProjectionDataWorker pdw = new ProjectionDataWorker(Db);

            return(pdw.UpdateProjection(request.Projection));
        }
        // Creates a new Projection
        public int Post(ProjectionRequest request)
        {
            ProjectionDataWorker pdw = new ProjectionDataWorker(Db);

            return(pdw.AddProjection(request.Projection));
        }
        // Return a single Projection given their ProjectionID
        public Projection Get(ProjectionIDRequest request)
        {
            ProjectionDataWorker pdw = new ProjectionDataWorker(Db);

            return(pdw.GetProjectionByID(request.ProjectionID));
        }
        // Return a list of projections by player last name
        public List <Projection> Get(StringRequest request)
        {
            ProjectionDataWorker pdw = new ProjectionDataWorker(Db);

            return(pdw.GetProjectionListByLastName(request.Parameter));
        }