Ejemplo n.º 1
0
        // GET api/<controller>/5
        public async Task <string> Get(int id)
        {
            await WeatherDB.RecordSuccess(ReadingType.Luminocity, WeatherInfoSource.Device, id);

            return(DateTime.Now.ToString());
        }
Ejemplo n.º 2
0
        // GET api/<controller>/5
        public async Task <string> Get(int id)
        {
            await WeatherDB.RecordSuccess(ReadingType.Temperature, WeatherInfoSource.Device, id / 100.0);

            return(DateTime.Now.ToString());
        }