@@ -107,6 +107,18 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
result.DoctorId = dockerInfo.Id;
|
||||
result.ReviewStatus = dockerInfo.ReviewStatus;
|
||||
}
|
||||
else
|
||||
{
|
||||
Doctor doctor = new Doctor()
|
||||
{
|
||||
EMail = inDto.EmailOrPhone
|
||||
};
|
||||
|
||||
var info=await _doctorRepository.AddAsync(doctor,true);
|
||||
|
||||
result.DoctorId = info.Id;
|
||||
result.ReviewStatus = info.ReviewStatus;
|
||||
}
|
||||
|
||||
result.Token = _tokenService.GetToken(IRaCISClaims.Create(new UserBasicInfo()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user