How to Parse Razor string using Model in MVC
<p>I have below razor string in my project as given below.</p>

<pre><code>string razorString = "This mail is from @Model.email";
var model = new { email = "mann@gmail.com" };
</code></pre>

<p>I need to parse razorString with given model. I have seen Razor.Parse method in RazorEngine but that method is obsolete now and replaced with Engine.Razor. So how can i achieve same with new method. Please suggest. </p>

<p>After using  Engine.Razor.RunCompile(template, "templateKey", null, model) i got below error</p>

<p><a href="https://i.stack.imgur.com/jY5Pv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jY5Pv.png" alt="enter image description here"></a></p>