I need to take a particular action if a user logs in from the home page. In my LogOnModel, I have a hidden field:
@Html.Hidden(\"returnUrl\", Request.Url.Absolut
In any view, the following code returns the current controller name.
@ViewContext.Controller.ValueProvider.GetValue("controller").RawValue.ToString()
Is it easy enough? :)