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

            _repository.Save(item, -1);
        }