Created
June 3, 2013 13:20
-
-
Save codescribler/5698094 to your computer and use it in GitHub Desktop.
An extension to make getting at the defaultModel from a nancyfx call easy to get to.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class Extensions | |
{ | |
public static dynamic DefaultModel(this BrowserResponse response) | |
{ | |
return response.Context.NegotiationContext.DefaultModel; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment