public string GetCommandDetails(string fileType) { IFileCommand cmd = null; FileTypes ft; Enum.TryParse <FileTypes>(fileType, out ft); if (ft != null) { cmd = ConvertorJson.FileFactory(ft); } return(cmd.getFileDataInJson()); }
public string getFileDataInJson() { string strfilepath = HttpContext.Current.Server.MapPath("/XMLDataSources/clsSharedFolder.xml"); return(ConvertorJson.GetJsonFromXMLFelepath(strfilepath)); }
public string getFileDataInJson() { string strfilepath = HttpContext.Current.Server.MapPath("~/XMLDataSources/clsCustomSetupFileNames.xml"); return(ConvertorJson.GetJsonFromXMLFelepath(strfilepath)); }