I have a strange problem with my model passed to the View
Controller
[Authorize]
public ActionResult Sth()
{
return View(\"~/Views/S
You meant this View
overload:
protected internal ViewResult View(string viewName, Object model)
MVC is confused by this overload:
protected internal ViewResult View(string viewName, string masterName)
Use this overload:
protected internal virtual ViewResult View(string viewName, string masterName,
Object model)
This way:
return View("~/Views/Sth/Sth.cshtml", null , "abc");
By the way, you could just use this:
return View("Sth", null, "abc");
Overload resolution on MSDN