/// <summary> /// Updates customer's default threshold. /// </summary> /// <param name="customerId">The customer identifier.</param> /// <param name="request">The request.</param> /// <param name="bearerToken">The bearer token.</param> /// <returns></returns> public Task UpdateDefaultThreshold( int customerId, UpdateDefaultThresholdRequestDto request, string bearerToken ) { return(vitalsDataProvider.UpdateDefaultThreshold(customerId, request, bearerToken)); }
/// <summary> /// Updates customer's default threshold. /// </summary> /// <param name="customerId">The customer identifier.</param> /// <param name="request">The request.</param> /// <param name="bearerToken">The bearer token.</param> /// <returns></returns> public Task UpdateDefaultThreshold( int customerId, UpdateDefaultThresholdRequestDto request, string bearerToken ) { return apiClient.SendRequestAsync( string.Format("/api/{0}/thresholds/defaults/{1}", customerId, request.Id), request, Method.PUT, null, bearerToken ); }
/// <summary> /// Updates customer's default threshold. /// </summary> /// <param name="request">The request.</param> /// <returns></returns> public Task UpdateDefaultThreshold(UpdateDefaultThresholdRequestDto request) { var token = authDataStorage.GetToken(); return(vitalsService.UpdateDefaultThreshold(CustomerContext.Current.Customer.Id, request, token)); }
public async Task <ActionResult> UpdateDefaultThreshold(UpdateDefaultThresholdRequestDto request) { await settingsControllerManager.UpdateDefaultThreshold(request); return(Json(string.Empty)); }