When requesting http://someserver.com/user/btyndall I'd like to return HTML When requesting http://someserver.com/user/btyndall?format=xml I'd like to return XML representation of my model
I've downloaded MvcContrib. (I can't believe XmlResult is not a part of the core framework)
What is the proper way to handle the request in the controller. With JSON you have a JsonResult and Json(). I see a XmlResult but not an Xml() method
I could use a little guidance. What I have so far (which is nada):
public ActionResult Details(int id)
{
return View();
}
UPDATE:
see all comments