I'd want to save HTML that's being generated by
return View("view name", ComplexModel); in Controller's method with IActionResult return type
Is it possible to extract that html without obtaining it from user side by e.g JavaScript?
Something like:
string html = View("view name", ComplexModel).RawHtml;
'Engines' does not exist in the namespace 'Microsoft.AspNetCore.Mvc.ViewEngines'