public ActionResult Edit(string comName) { string filePath = Server.MapPath("~/ADConfig.xml"); AdOperate ado = new AdOperate(filePath); ado.SetADConfig(comName, filePath); return(Content("ok")); }