Created
April 20, 2015 18:49
-
-
Save johnmmoss/bc134c1d59d85079f74b to your computer and use it in GitHub Desktop.
HttpStatusCodeResult examples
This file contains hidden or 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 HttpStatusCodeResult Unavailable() | |
{ | |
var status = HttpStatusCode.ServiceUnavailable; | |
var statusCode = new HttpStatusCodeResult(status); | |
return statusCode; | |
} | |
public HttpStatusCodeResult Found() | |
{ | |
var status = HttpStatusCode.Found; | |
var statusCode = new HttpStatusCodeResult(status); | |
return statusCode; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment