コード例 #1
0
 /// <summary>
 /// Generates events in calendar.
 /// </summary>
 /// <param name="customerId">The customer identifier.</param>
 /// <param name="patientId">The patient identifier.</param>
 /// <param name="model">The create events model.</param>
 /// <param name="token">The bearer token.</param>
 /// <returns></returns>
 public async Task <IList <CalendarItemResponseDto> > CreateCalendarItems(
     int customerId,
     Guid patientId,
     CreateCalendarItemsRequestDto model,
     string token)
 {
     return(await patientsDataProvider.CreateCalendarItems(customerId, patientId, model, token));
 }
コード例 #2
0
        /// <summary>
        /// Creates set of calendar items in Calendar API.
        /// </summary>
        /// <param name="customerId"></param>
        /// <param name="patientId"></param>
        /// <param name="model"></param>
        /// <param name="token"></param>
        /// <returns></returns>
        public async Task <IList <CalendarItemResponseDto> > CreateCalendarItems(
            int customerId,
            Guid patientId,
            CreateCalendarItemsRequestDto model,
            string token
            )
        {
            string endpointUrl = string.Format("/api/{0}/patient/{1}/calendar", customerId, patientId);

            return(await this.apiClient.SendRequestAsync <List <CalendarItemResponseDto> >(
                       endpointUrl, model, Method.POST, null, token));
        }