Example #1
0
 public async Task <ActionResult <int> > CreatePatient([FromBody] OncologyPatientModel model)
 {
     //return Created($"{AppConstants.API_URL_PREFIX}/oncologyPatient/", await Mediator.Send(new CreateOncologyPatientCommand { Model = model }));
     return(Ok(await Mediator.Send(new CreateOncologyPatientCommand {
         Model = model
     })));
 }
Example #2
0
        public async Task <ActionResult> UpdatePatient([FromBody] OncologyPatientModel model)
        {
            await Mediator.Send(new UpdateOncologyPatientCommand { Model = model });

            return(NoContent());
        }
Example #3
0
 public async Task <ActionResult <ListModel <OncologyPatientModel> > > AttemptCreatePatient([FromBody] OncologyPatientModel model)
 {
     return(Ok(await Mediator.Send(new AttemptOncologyPatientCreationCommand {
         Model = model
     })));
 }