public async Task <ActionResult <int> > CreatePhysicalRecordTransfer([FromBody] PhysicalRecordTransferModel model) { //return Created($"{AppConstants.API_URL_PREFIX}/beds/", await Mediator.Send(new CreatePhysicalRecordTransferCommand { Model = model })); return(Ok(await Mediator.Send(new CreatePhysicalRecordTransferCommand { Model = model }))); }
public async Task <ActionResult> UpdatePhysicalRecordTransfer([FromBody] PhysicalRecordTransferModel model) { await Mediator.Send(new UpdatePhysicalRecordTransferCommand { Model = model }); return(NoContent()); }