Exemple #1
0
        public async Task <bool> PostAssistant(assistantBooking AssistantBooking)
        {
            RestClient <assistantBooking> restClient = new RestClient <assistantBooking>();


            var result = await restClient.PostAsync(AssistantBooking, "api/assistantBookings");

            try
            {
                return(result);
            }
            catch
            {
                return(false);
            }
        }
Exemple #2
0
 public BookAssistantsViewModel(GetBookAssistantsRequest getBookAssistantsRequest)
 {
     this.getBookAssistantsRequest = getBookAssistantsRequest;
     ObjassistantBooking           = new assistantBooking();
     FromTime = DateTime.Now;
 }