/// <summary> /// 添加患者信息 /// </summary> /// <param name="request"></param> /// <param name="cancellationToken"></param> /// <returns></returns> public async Task <Unit> Handle(CreatePatientCommand request, CancellationToken cancellationToken) { var data = new Domain.Patient.Patient(request.Name); await _patientRepository.AddAsync(data); await _patientRepository.UnitOfWork.SaveEntitiesAsync(cancellationToken); return(new Unit()); }
public Task <bool> UpdateClient(Domain.Patient.Patient patient) { throw new NotImplementedException(); }
public Task SetAsDeleted(Domain.Patient.Patient client, bool commitChanges = false) { throw new NotImplementedException(); }
public Task <Domain.Patient.Patient> RegisterClient(Domain.Patient.Patient patient) { throw new NotImplementedException(); }