コード例 #1
0
 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
     })));
 }
コード例 #2
0
        public async Task <ActionResult> UpdatePhysicalRecordTransfer([FromBody] PhysicalRecordTransferModel model)
        {
            await Mediator.Send(new UpdatePhysicalRecordTransferCommand { Model = model });

            return(NoContent());
        }