I need render some View into string and send it through Json.
Example.
[HttpPost]
public ActionResult GetTreeUnit(string id)
{
int _id = id.ExtractID();
string render ="";
// render = GetStringView("SomeView");
return Json(new { data = render });
}
I had created solution for my question. It’s Extension that render view into string.
And than we can render view in Action