public ActionResult GetTemperature() { var model = _TemperatureService.GetTemperatures(); return(Json(new { data = model })); }
public async Task <IEnumerable <DtoTemp> > Get(string key) { var list = await _temperatureService.GetTemperatures(key); return(list); }