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 Updates
APA

Posts on LINQ to Fail | Sciencx (2012-03-19T00:00:00+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 ,<https://www.scien.cx/2012/03/19/owin-responses/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » OWIN Responses. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2012/03/19/owin-responses/
CHICAGO
" » OWIN Responses." Posts on LINQ to Fail | Sciencx - Accessed . 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: ]
rf:citation
» OWIN Responses | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2012/03/19/owin-responses/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.