コード例 #1
0
        /// <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());
        }
コード例 #2
0
 public Task <bool> UpdateClient(Domain.Patient.Patient patient)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
 public Task SetAsDeleted(Domain.Patient.Patient client, bool commitChanges = false)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
 public Task <Domain.Patient.Patient> RegisterClient(Domain.Patient.Patient patient)
 {
     throw new NotImplementedException();
 }