Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        public async Task <BookCandidateResponse> BookCandidate([FromBody] BookCandidateRequest request)
        {
            var result = await _schoolService.CreateBooking(request.UserId, request.SchoolId, request.CandidateId, request.Date);

            return(result);
        }