예제 #1
0
 public async Task <ActionResult <PostProductCommandResponse> > Post(PostProductCommand request, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await Mediator.Send(request, cancellationToken));
 }
예제 #2
0
 public async Task <ActionResult <PostProductCommandResponse> > Post([FromBody] PostProductCommand request)
 {
     return(await Send(request));
 }
        public async Task <IActionResult> PostAsync(PostProductCommand data)
        {
            var result = await _mediatr.Send(data);

            return(Ok(result));
        }
예제 #4
0
        public async Task <IActionResult> Post(PostProductCommand data)
        {
            var result = await meciater.Send(data);

            return(Ok(result));
        }