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); } }
public BookAssistantsViewModel(GetBookAssistantsRequest getBookAssistantsRequest) { this.getBookAssistantsRequest = getBookAssistantsRequest; ObjassistantBooking = new assistantBooking(); FromTime = DateTime.Now; }