How can I attach an existing view to an action? I mean, I’ve already attached this “View to Action”, but I want it to be attached to the second action.
Example: I have an action named Index and a view, the same name attached to it, right-clicking, adding a view ... but now, how to connect to the second? Suppose an action called Index2, how to do this?
Here is the code:
public ActionResult Index(int? EntryId)
{
Entry entry = Entry.GetNext(EntryId);
return View(entry);
}
[HttpPost]
public ActionResult Rewind(Entry entry)
{
return View(entry);
}
I googled and cannot find the correct answer ... Is this possible?
source
share