I would like to build emails in dotnet core 1.0 using the Razor engine, but I cannot work out how to do that.
I have created a view model containing the data for the view and I have made a view and run that view in code:
var confirm = new ConfirmEmailHtmlViewModel();
confirm.CallbackUrl = callbackUrl;
var message = View("ConfirmEmailHtml", confirm);
What I cannot figure out is how to extract a string containing the rendered view from 'message'.
Is this possible and if it is how do I do that?