public async Task <ActionResult> Update(Guid id, [FromBody] ShipmentCommandViewModel body) { await Mediator.Send(new UpdateShipmentCommand { Id = id, Shipment = body }); return(NoContent()); }
public async Task <ActionResult <Guid> > Create(ShipmentCommandViewModel body) { var id = await Mediator.Send(new CreateShipmentCommand { Shipment = body }); return(Ok(id)); }