Esempio n. 1
0
        private async Task <string> GetDecoded(Question question)
        {
            var imageId = question.InputValues.Single(x => x.Name == "id").Data;
            var image   = await _imageLogic.LoadImage(new Guid(imageId));

            return(DecodeQrCode(image.Data));
        }
Esempio n. 2
0
        public async Task <IActionResult> GetImage(Guid imageId)
        {
            var image = await _imageLogic.LoadImage(imageId);

            return(image != null ? (IActionResult)File(image.Data, "image/png") : NotFound());
        }