Пример #1
0
        public async Task <IActionResult> Serve(GetDigitalAssetByIdQuery.Request request)
        {
            var response = await _mediator.Send(request);

            return(File(response.DigitalAsset.Bytes, response.DigitalAsset.ContentType));
        }
Пример #2
0
 public async Task <IActionResult> GetById([FromQuery] GetDigitalAssetByIdQuery.Request request)
 => Ok(await _mediator.Send(request));