/// <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));
 }
示例#2
0
 /// <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));
        }
示例#4
0
        public async Task <ActionResult> UpdateDefaultThreshold(UpdateDefaultThresholdRequestDto request)
        {
            await settingsControllerManager.UpdateDefaultThreshold(request);

            return(Json(string.Empty));
        }