public List <Season> GetSeasons() { var logic = new SeasonLogic(); var seasons = logic.GetSeasons(); return(seasons); }
// POST api/values public void Post([System.Web.Http.FromBody] string value) { //Update Seasons SeasonLogic.Update(); //Update Data Interpretation var interpretedDataController = new InterpretedDataController(); interpretedDataController.Update(); }
// GET api/statistics/seasons public string Get() { return(SeasonLogic.GetSeasonInFormat(false, 0, "short")); }
// PUT api/statistics/seasons/5 public void Put(int id, [FromBody] object value) { SeasonLogic.UpdateSeasonByMethod(id, value.ToString()); }
// POST api/statistics/seasons public void Post([FromBody] string value) { SeasonLogic.UpdateSeasonsByMethod(value); }
// GET api/statistics/seasons/5 public string Get(int id, [FromUri] string format) { return(SeasonLogic.GetSeasonInFormat(true, id, format)); }
// GET api/statistics/seasons/5 public string Get(int id) { return(SeasonLogic.GetSeasonInFormat(true, id, "short")); }
// GET api/statistics/seasons public string Get([FromUri] string format) { return(SeasonLogic.GetSeasonInFormat(false, 0, format)); }