Is there any way to instead of returning a view and displaying it on the screen for the user, I return it but instead of displaying it I save the .html file on the computer? The code is as follows:
return View("~/Views/Item/Item.cshtml", model);
But it returns the view and displays it for the user, I wanted a way to download the html file instead of displaying it, is it possible to do this in some way?