public IHttpActionResult Post()
 {
     var createMedicalProcedureApprovalRequest = new CreateMedicalProcedureApprovalRequest(Guid.NewGuid(), 1, "1", "Henry", DateTime.UtcNow);
     _bus.Send(createMedicalProcedureApprovalRequest);
     return this.Ok("Request Created");
 }
        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);
 }
Beispiel #4
0
        public void Handle(CreateMedicalProcedureApprovalRequest message)
        {
            var item = new MedicalApprovalProcedure(message.Id, message.PatientId, message.PatientName, message.DateOfBirth);

            _repository.Save(item, -1);
        }