public async Task <ConsultationCompletionDTO> SaveRequestData(ConsultationCompletionDTO dto)
        {
            if (dto.IsTerminated)
            {
                dto.DomainModel.Status = "Terminated";
            }
            await AddNewRequest(dto.DomainModel);

            dto.DomainModel.JobId = await KtaService.CreateJobAsync(dto.SessionId, AppConfiguaraton.KTAProcessIdConsultationCompletion, dto.DomainModel.Id);

            await UpdateAvailability(dto);

            dto.ConsultantEvaluation = new ConsultantEvaluation();
            await UpdateKtaJobID(dto.DomainModel.Id, dto.DomainModel.JobId);

            dto.ConsultantEvaluation.ConsultationId           = dto.DomainModel.ConsultationRequestId;
            dto.ConsultantEvaluation.ConsultationCompletionId = dto.DomainModel.Id;
            dto.ConsultantEvaluation.Comments        = dto.Comments;
            dto.ConsultantEvaluation.Rating          = dto.Rating;
            dto.ConsultantEvaluation.ConsultantEmail = dto.ConsultantEmail;
            dto.ConsultantEvaluation.EmployeeEmail   = dto.DomainModel.EmployeeEmail;

            await AddEvaluation(dto);

            await _consultantEvaluationService.AddNewRequest(dto.ConsultantEvaluation);



            return(dto);
        }
        public async Task AddAvailability(ConsultationDTO dto)
        {
            var ConsultantAvailability = new ConsultantAvailability();

            ConsultantAvailability.ConsultationRequestId = dto.DomainModel.Id;
            ConsultantAvailability.ConsultantEmail       = dto.DomainModel.ConsultantEmail;
            ConsultantAvailability.StartDate             = dto.DomainModel.DateFrom;
            ConsultantAvailability.EndDate = dto.DomainModel.DateTo;
            ConsultantAvailability.Days    = dto.DomainModel.Duration;
            ConsultantAvailability.Year    = DateTime.Parse(ConsultantAvailability.StartDate.ToString()).Year;;

            await _availabilityservice.AddNewRequest(ConsultantAvailability);
        }