OWIN Responses

In the last post we looked at Routing in OWIN as we built up a simple little route engine. Today I want to look at how to bring power to our responses by making it easier to respond with different types.
In ASP.Net MVC you’re probabily use to wri…


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

In the last post we looked at Routing in OWIN as we built up a simple little route engine. Today I want to look at how to bring power to our responses by making it easier to respond with different types. In ASP.Net MVC you’re probabily use to write code like this: public ActionResult Index() { return Json(new { FirstName = "Aaron", LastName = "Powell" }); } Here our Action (which comes from our Route) is defining that we want to output JSON to the response and it gives us a nice way which we can do it.


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate
APA
Posts on LINQ to Fail | Sciencx (2022-12-06T17:23:27+00:00) » OWIN Responses. Retrieved from https://www.scien.cx/2012/03/19/owin-responses/.
MLA
" » OWIN Responses." Posts on LINQ to Fail | Sciencx - Monday March 19, 2012, https://www.scien.cx/2012/03/19/owin-responses/
HARVARD
Posts on LINQ to Fail | Sciencx Monday March 19, 2012 » OWIN Responses., viewed 2022-12-06T17:23:27+00:00,<https://www.scien.cx/2012/03/19/owin-responses/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » OWIN Responses. [Internet]. [Accessed 2022-12-06T17:23:27+00:00]. Available from: https://www.scien.cx/2012/03/19/owin-responses/
CHICAGO
" » OWIN Responses." Posts on LINQ to Fail | Sciencx - Accessed 2022-12-06T17:23:27+00:00. https://www.scien.cx/2012/03/19/owin-responses/
IEEE
" » OWIN Responses." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2012/03/19/owin-responses/. [Accessed: 2022-12-06T17:23:27+00:00]
rf:citation
» OWIN Responses | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2012/03/19/owin-responses/ | 2022-12-06T17:23:27+00:00
https://github.com/addpipe/simple-recorderjs-demo