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 }))); }
public async Task <ActionResult> UpdatePatient([FromBody] OncologyPatientModel model) { await Mediator.Send(new UpdateOncologyPatientCommand { Model = model }); return(NoContent()); }
public async Task <ActionResult <ListModel <OncologyPatientModel> > > AttemptCreatePatient([FromBody] OncologyPatientModel model) { return(Ok(await Mediator.Send(new AttemptOncologyPatientCreationCommand { Model = model }))); }