示例#1
0
        public async Task <IActionResult> Create([FromBody] CreateContainerDto container)
        {
            var request  = new CreateContainerRequest(container);
            var response = await _mediator.Send(request);

            var envelope = new Envelope <string>(response);

            return(CreatedAtAction(nameof(Retrieve), new { id = envelope.Data }, envelope));
        }
示例#2
0
 public CreateContainerRequest(CreateContainerDto container)
 {
     Container = container;
 }