示例#1
0
        /// <summary>
        /// Saves a <see cref="Note"/> object
        /// </summary>
        /// <param name="note"></param>
        public int Save(Note note)
        {
            int noteId = -1;

            using (var repo = new NotesRepository())
            {
                repo.AddOrUpdate(note, out noteId);
            }
            return(noteId);
        }