forked from mauricioaniche/restfulie.net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ResponseController created for system tests
- Loading branch information
1 parent
2ab00f9
commit 53ba1c3
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using System.Web.Mvc; | ||
using Restfulie.Server; | ||
using Restfulie.Server.Results; | ||
|
||
namespace Web.Controllers | ||
{ | ||
[ActAsRestfulie] | ||
public class ResponsesController : Controller | ||
{ | ||
public virtual ActionResult Success() | ||
{ | ||
return new Success(); | ||
} | ||
|
||
public virtual ActionResult BadRequest() | ||
{ | ||
return new BadRequest(); | ||
} | ||
|
||
public virtual ActionResult Created() | ||
{ | ||
return new Created(); | ||
} | ||
|
||
public virtual ActionResult InternalServerError() | ||
{ | ||
return new InternalServerError(); | ||
} | ||
|
||
public virtual ActionResult NotFound() | ||
{ | ||
return new NotFound(); | ||
} | ||
|
||
public virtual ActionResult PreconditionFailed() | ||
{ | ||
return new PreconditionFailed(); | ||
} | ||
|
||
public virtual ActionResult SeeOther() | ||
{ | ||
return new SeeOther(Url.Action("Success")); | ||
} | ||
} | ||
} |
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