I need generate email by template base's on razor engine.
Business logic is class library Project. I added System.Web.Razor and RazorEngine.
And created simple cshtml file, but this file don't work like simple razor cshtml.
Do not have @model BlablaViewModel
but work @foreach, @for, @if
How to user razor power in class library project ?
UPDATE it is not duplicated. I need use razor with viewModel but their solutions do not help me.