Skip to content

Instantly share code, notes, and snippets.

@hammett
Created April 20, 2012 21:04
Show Gist options
  • Save hammett/2431883 to your computer and use it in GitHub Desktop.
Save hammett/2431883 to your computer and use it in GitHub Desktop.
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