public IEnumerable <WeatherForecast> Get(DateTime tsOne, DateTime tsTwo) { return(_servicesForecast.Get() .Where(wf => (DateTime.Compare(wf.Date, tsOne) >= 0) || (DateTime.Compare(wf.Date, tsOne) <= 0)) .ToList()); }
public IEnumerable <WeatherForecast> Get(DateTime id) { return(_service.Get() .Where(wf => wf.Date.Date.CompareTo(id.Date) == 0) .ToList()); }
public WeatherForecast Get() { return(_service.Get().OrderByDescending(wf => wf.Date).FirstOrDefault()); }
public ActionResult <IEnumerable <WeatherForecast> > GetWeatherObservations() => _service.Get();