I have a masterpage on which ill check for a condition if condition is true i want to redirect it to a particular view. how can i do this because on masterpage either view() or RedirectToAction() function are available. My condition is
if(Session["Name"]==null)
//redirect to login
else
//work as usual