title: Returning XML and Json formatted data from MVC controller
body: <p>I need to create an MVC 4 controller that can return the same data either in a JSON format for an XML format depending on the request from the view.  Would it be better to create two controllers or can this be done with one controller?  If it can be done with one controller, can someone show me how this is done?</p>
  
  <p>THanks.</p>