public async Task <FileContentResult> Get([FromServices] IQRCodeService _qr, string content)
        {
            //var buffer = await _qr.GenerateQRCode(content);
            var iconPath = _hostEnvironment.ContentRootPath;//D:\\WorkSpace\\GitHub\\MyNetCore\\MyNetCore.Web

            iconPath += "\\wwwroot\\favicon.ico";
            if (System.IO.File.Exists(iconPath))
            {
                var buffer = await _qr.GenerateQRCode(content, iconPath);

                return(File(buffer, "image/jpeg"));
            }
            else
            {
                var buffer = await _qr.GenerateQRCode(content);

                return(File(buffer, "image/jpeg"));
            }
        }
        private async Task NotifyOrganisation(string companyName, CreateOrganisationRequest payload, Organisation organisation)
        {
            var emailAddressRef = payload.FormResponse.Definition.Fields
                                  .FirstOrDefault(t => string.Equals(t.Title, DefinitionConstants.EmailAdress, StringComparison.Ordinal))?
                                  .Reference;

            var emailAddress = payload.FormResponse.Answers
                               .FirstOrDefault(t => string.Equals(t.Field.Reference, emailAddressRef, StringComparison.Ordinal))?
                               .Email;

            if (string.IsNullOrEmpty(emailAddress))
            {
                throw new ValidationException(Messages.Org_EmailEmpty);
            }

            await _emailService.SendEmail(
                emailAddress,
                companyName,
                _qrCodeService.GenerateQRCode(organisation.Id.ToString()),
                DefinitionConstants.EmailTemplates.OrganisationWelcome);
        }
        public GenerateQRCodeResponse GenerateQRCode(GenerateQRCodeRequest request)
        {
            var output = _qRCodeService.GenerateQRCode(request);

            return(output);
        }