public ActionResult GetTemperature()
        {
            var model = _TemperatureService.GetTemperatures();

            return(Json(new { data = model }));
        }
示例#2
0
        public async Task <IEnumerable <DtoTemp> > Get(string key)
        {
            var list = await _temperatureService.GetTemperatures(key);

            return(list);
        }