コード例 #1
0
 public IHttpActionResult Post()
 {
     var createMedicalProcedureApprovalRequest = new CreateMedicalProcedureApprovalRequest(Guid.NewGuid(), 1, "1", "Henry", DateTime.UtcNow);
     _bus.Send(createMedicalProcedureApprovalRequest);
     return this.Ok("Request Created");
 }
コード例 #2
0
        public void Handle(CreateMedicalProcedureApprovalRequest message)
        {
            var item = new MedicalApprovalProcedure(message.Id, message.PatientId, message.PatientName, message.DateOfBirth);

            _repository.Save(item, -1);
        }
 public void Post()
 {
     var createMedicalProcedureApprovalRequest = new CreateMedicalProcedureApprovalRequest(Guid.NewGuid(), 1, "1", "Henry", DateTime.UtcNow);
     _bus.Send("Samples.StepByStep.Server", createMedicalProcedureApprovalRequest);
 }
コード例 #4
0
        public void Handle(CreateMedicalProcedureApprovalRequest message)
        {
            var item = new MedicalApprovalProcedure(message.Id, message.PatientId, message.PatientName, message.DateOfBirth);

            _repository.Save(item, -1);
        }