public IEnumerable<Word> GetWords() { return db.Words.ToList(); }
var appXmlType = config.Formatters.XmlFormatter.SupportedMediaTypes.FirstOrDefault(t => t.MediaType == "text/xml"); config.Formatters.XmlFormatter.SupportedMediaTypes.Remove(appXmlType);
Configuration.Formatters.XmlFormatter
public IHttpActionResult Get() { //Your code to get the result object return Content(HttpStatusCode.OK, results, Configuration.Formatters.XmlFormatter); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)