Exemplo n.º 1
0
 /// <summary>
 /// Updates the calendar item.
 /// </summary>
 /// <param name="customerId">The customer identifier.</param>
 /// <param name="patientId">The patient identifier.</param>
 /// <param name="calendarItemId">The calendar item identifier.</param>
 /// <param name="model">The model.</param>
 /// <param name="token">The bearer token.</param>
 /// <returns></returns>
 public async Task UpdateCalendarItem(
     int customerId,
     Guid patientId,
     Guid calendarItemId,
     CalendarItemRequestDto model,
     string token)
 {
     await patientsDataProvider.UpdateCalendarItem(customerId, patientId, calendarItemId, model, token);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Updates the calendar item.
        /// </summary>
        /// <param name="customerId">The customer identifier.</param>
        /// <param name="patientId">The patient identifier.</param>
        /// <param name="calendarItemId">The calendar item identifier.</param>
        /// <param name="model">The model.</param>
        /// <param name="token">The bearer token.</param>
        /// <returns></returns>
        public async Task UpdateCalendarItem(
            int customerId,
            Guid patientId,
            Guid calendarItemId,
            CalendarItemRequestDto model,
            string token)
        {
            string endpointUrl = string.Format("/api/{0}/patient/{1}/calendar/{2}", customerId, patientId, calendarItemId);

            await this.apiClient.SendRequestAsync(endpointUrl, model, Method.PUT, null, token);
        }