public static string WriteData(T obj, string fullpath) { try { HelperXML.SaveXml(fullpath, (object)obj); return((string)null); } catch (Exception ex) { return(ex.Message); } }
public static void SaveXml(string filePath, object obj) { HelperXML.SaveXml(filePath, obj, obj.GetType()); }