public TidalPrediction Get(int id) { TidalPredictionPersistance tpp = new TidalPredictionPersistance(); TidalPrediction tidalPrediction = tpp.getTidalPredictionByID(id); return(tidalPrediction); }
public TidalPrediction Get(string station) { TidalPredictionPersistance tpp = new TidalPredictionPersistance(); TidalPrediction tidalPrediction = tpp.getTidalPredictionByStation(station); return(tidalPrediction); }
public void Post([FromBody] TidalPrediction value) { TidalPredictionPersistance tpp = new TidalPredictionPersistance(); int id; id = (int)tpp.saveTidalPrediction(value); value.PredictionID = id; //RETURN HTTP STATUS CODES // //HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created); // //response.Headers.Location = new Uri(Request.RequestUri, String.Format("TidalPrediction/{0}", id)); // //return response; }
public ArrayList Get() { TidalPredictionPersistance tpp = new TidalPredictionPersistance(); return(tpp.getAllTidalPredictions()); }