Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# ASP.NET MVC Basics Controllers Using Action Result Types

Code is not executable because the Method Redirect does not exist.

internal class Redirect : ActionResult { private string v;

    public Redirect(string v)
    {
        this.v = v;
    }

    public override void ExecuteResult(ControllerContext context)
    {
        throw new NotImplementedException();
    }
}

1 Answer

Karlijn Willems
Karlijn Willems
9,961 Points

I think you forgot to declare a returntype for your Redirect method. Hope this helps :)