How can I update the following code to save in a directory of my choice on IIS. Currently it will only save in my downloads directory with the file name of the path.
E.g.. the following example saves in my downloads directory as
C--inetpub-wwwroot-sitename-Feeds-reports.xml
[HttpGet]
public XmlActionResult GetXmlData()
{
System.Xml.XmlTextReader reader = new System.Xml.XmlTextReader(Server.MapPath("~/reports.xml"));
var xml = XElement.Load(reader);
//I want to save the file to the following destination but this saves it with the file name of the destination in my downloads directory
return new XmlActionResult(xml.ToString(), Server.MapPath("~/Feeds/reports.xml"));
}
EDIT
I want to move the reports.xml file from the current directory to the Feeds directory.