I want to send the user to one of two different pages depending on the value of isCustomerEligible. When the value of that variable is set to false, it does call Index but then returns the view for Customer and not the view for Index.
public ViewResult Index()
{
return View();
}
public ViewResult Customer()
{
DetermineCustomerCode();
DetermineIfCustomerIsEligible();
return isCustomerEligible ? View() : Index();
}