예제 #1
0
 /// <summary>
 /// Gets the calendar items.
 /// </summary>
 /// <param name="customerId">The customer identifier.</param>
 /// <param name="patientId">The patient identifier.</param>
 /// <param name="searchCriteria">The search criteria.</param>
 /// <param name="bearerToken">The bearer token.</param>
 /// <returns></returns>
 public Task <PagedResult <CalendarItemResponseDto> > GetCalendarItems(
     int customerId,
     Guid patientId,
     CalendarItemsSearchDto searchCriteria,
     string bearerToken
     )
 {
     return(patientsDataProvider.GetCalendarItems(customerId, patientId, searchCriteria, bearerToken));
 }
예제 #2
0
        /// <summary>
        /// Gets the calendar items.
        /// </summary>
        /// <param name="customerId">The customer identifier.</param>
        /// <param name="patientId">The patient identifier.</param>
        /// <param name="searchCriteria">The search criteria.</param>
        /// <param name="bearerToken">The bearer token.</param>
        /// <returns></returns>
        public async Task <PagedResult <CalendarItemResponseDto> > GetCalendarItems(
            int customerId,
            Guid patientId,
            CalendarItemsSearchDto searchCriteria,
            string bearerToken
            )
        {
            string endpointUrl = string.Format("/api/{0}/patient/{1}/calendar", customerId, patientId);

            return(await apiClient.SendRequestAsync <PagedResult <CalendarItemResponseDto> >(
                       endpointUrl,
                       searchCriteria,
                       Method.GET,
                       null,
                       bearerToken
                       ));
        }