public async Task <ActionResult> UploadStatistics() { if (thermostat != null) { await thermostat.UploadStatistics(); } return(Json(new { success = true })); }