Esempio n. 1
0
        public async Task <IActionResult> CreateShipment([FromBody] CreateShipmentRequestModel createShipmentRequest)
        {
            var response = await _mediator.Send(new CreateShipmentCommand(createShipmentRequest));

            return(Ok(response));
        }
 public CreateShipmentCommand(CreateShipmentRequestModel createShipmentRequest)
 {
     CreateShipmentRequest = createShipmentRequest;
 }