public async Task <bool> SetNewTemp(int newTarget) { try { await _messenger.SetTemp(newTarget, "accessToken"); return(true); } catch (Exception e) { _logger.LogError(e.ToString()); return(false); } }
public async Task <IActionResult> SetNewTemp(int newTemp) { await _messenger.SetTemp(newTemp, "accessToken"); return(Ok()); }