I have a strange problem with my model passed to the View
Controller
[Authorize] public ActionResult Sth() { return View(\"~/Views/S
This seems so pretty obvious but maybe someone needs more clarification in the future:
If in your controller do:
string id = "abc"; return View(model: id);
Then in your view, you need:
@model string
In order to get the value, for e.g.:
<div>@Model</div>