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