can u correct this code:
using Microsoft.AspNetCore.Mvc;
using QRCoder;
using QRCodeValidator.Models;
using System.Diagnostics;
using System.Drawing;

namespace QRCodeValidator.Controllers
{
    [HttpPost]
    public IActionResult Index(string txtQrCode)
        {
            if (!string.IsNullOrWhiteSpace(txtQrCode))
            {
                QRCodeGenerator qrCodeGenera = new QRCodeGenerator();
                QRCodeData QrCodeDataRisultato = qrCodeGenera.CreateQrCode(txtQrCode, QRCodeGenerator.ECCLevel.Q);
                QRCode qrCodeCreato = new QRCode(QrCodeDataRisultato);
                Bitmap qrCodeImage = qrCodeCreato.GetGraphic(20);
                //NAME_1 il file
                qrCodeImage.Save("C:\\Dati\\QrCodeGenerato.Jpeg", System.Drawing.Imaging.ImageFormat.Jpeg);
                //Oppure usare lo streaming
                using (MemoryStream stream = new MemoryStream())
                {
                    qrCodeImage.Save(stream, System.Drawing.Imaging.ImageFormat.Png);
                    return View(stream.ToArray());
                }
            }
            return View();
        }
}