How to call Html.Partial()
method from controller or some other method in external class library?
I need something like:
string someView = "SomeView";
object someModel = new SomeModel();
HtmlHelper helper = new HtmlHelper();
string html = helper.Partial(someView, someModel).ToString();
I need to get html string which this method returns.