private ContentResult ErrorXml(string errorMessage) { return Content( new XDocument( new XElement("error", errorMessage) ).ToString(), "text/xml"); }