I am wondering how to check in an Action, from which View I made POST to it.
So after the action is complete I can make a return back to that same View.
Like:
if (enteredfromView1)
{
return RedirectToAction("View1","Controller");
}
else
return RedirectToAction ("View2","Controller");
You can use the Request.UrlReferrer to implement this.
If this is not what you are looking for, than you should take a look at this post. Maybe this helps you out: Obtain View name in Controller, ASP.NET MVC