public async Task <BookCandidateResponse> BookCandidate(string userId, string schoolId, string candidateId, DateTime when) { var request = new BookCandidateRequest { UserId = userId, SchoolId = schoolId, CandidateId = candidateId, Date = when, }; return(await PostAsync <BookCandidateRequest, BookCandidateResponse>($"{BaseUrl}bookcandidate", request)); }
public async Task <BookCandidateResponse> BookCandidate([FromBody] BookCandidateRequest request) { var result = await _schoolService.CreateBooking(request.UserId, request.SchoolId, request.CandidateId, request.Date); return(result); }