예제 #1
0
 public IActionResult Post(
     [FromForm] UploadImageDto dto,
     [FromServices] IUploadImageCommand command)
 {
     _executor.ExecuteCommand(command, dto);
     return(StatusCode(StatusCodes.Status201Created));
 }
예제 #2
0
 public void Post([FromForm] ImageDto dto, [FromServices] IUploadImageCommand command)
 {
     executor.ExecuteCommand(command, dto);
 }