@@ -148,6 +148,21 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
if (dockerInfo != null)
|
||||
{
|
||||
var isVirtual = true;
|
||||
|
||||
if (inDto.TrialId != null)
|
||||
{
|
||||
isVirtual = await _trialRepository.Where(x => x.Id == inDto.TrialId).Select(x => x.TrialType != TrialType.OfficialTrial).FirstNotNullAsync();
|
||||
|
||||
await _doctorRepository.UpdatePartialFromQueryAsync(x => x.Id == dockerInfo.Id, y => new Doctor()
|
||||
{
|
||||
IsVirtual = isVirtual,
|
||||
AcceptingNewTrial = inDto.TrialId == null ? false : true,
|
||||
CooperateStatus = inDto.TrialId == null ? ContractorStatusEnum.Noncooperation : ContractorStatusEnum.Cooperation,
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
return new UseEmialGetDoctorInfoOutDto()
|
||||
{
|
||||
DoctorId = dockerInfo.Id
|
||||
|
||||
Reference in New Issue
Block a user