Hello. I'm diving into ASP.NET MVC 2 and I'm trying to understand how it handles different request formats. In Ruby on Rails, you specify in the controller which response format to return based on the request...
respond_to do |format|
format.html #action.html.erb
format.xml { render :xml => @employees.to_xml(:root => "employees") }
In ASP.NET MVC 2...
- How do you specify the request format?
- How do you respond to that request with the requested format?
Thanks so much in advance! I apologize if this question is strange, I'm very new to the .NET world.