private void SaveAllNotes() { if (!System.IO.File.Exists(ContentFilePath)) { System.IO.File.CreateText(ContentFilePath); } XmlFileHelper.SaveDataToFile(_allNotes, ContentFilePath); }
public bool Save(T obj) { try { XmlFileHelper.SaveDataToFile(obj, FullPath); } catch (Exception) { return(false); } return(true); }