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)); }
public async Task <IActionResult> GetImage(Guid imageId) { var image = await _imageLogic.LoadImage(imageId); return(image != null ? (IActionResult)File(image.Data, "image/png") : NotFound()); }