Skip to content

Instantly share code, notes, and snippets.

@hammett hammett/gist:2431883
Created Apr 20, 2012

Embed
What would you like to do?
public ActionResult Access(Repository repos, AcceptableMedia accepts, bool isLastResourceInPath)
{
if (isLastResourceInPath && accepts.Prefers(MimeTypes.Html))
{
return new ContentNegotiatedResult();
}
return EmptyResult.Instance;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.