/// <summary> /// Create a new response to an existing n0te with a name, content, and 'personal' flag /// </summary> /// <param name="responseTo">The n0te to respond to</param> /// <param name="name">The initial name of the n0te</param> /// <param name="content">The content of the n0te</param> /// <param name="personal">True if this n0te is only visible to </param> /// <param name="attributes">Required attributes.</param> /// <returns>A newly minted n0te in response to the original one that exists in the VersionOne system.</returns> public Note Note(Note responseTo, string name, string content, bool personal, IDictionary<string, object> attributes) { var note = new Note(responseTo, instance) { Name = name, Content = content, Personal = personal }; AddAttributes(note, attributes); note.Save(); return note; }
/// <summary> /// Create a new n0te with a name, asset, content, and 'personal' flag /// </summary> /// <param name="name">The initial name of the n0te</param> /// <param name="asset">The asset this n0te belongs to</param> /// <param name="content">The content of the n0te</param> /// <param name="personal">True if this n0te is only visible to </param> /// <param name="attributes">Required attributes.</param> /// <returns>A newly minted n0te that exists in the VersionOne system.</returns> public Note Note(string name, BaseAsset asset, string content, bool personal, IDictionary<string, object> attributes) { var note = new Note(instance) { Asset = asset, Name = name, Content = content, Personal = personal }; AddAttributes(note, attributes); note.Save(); return note; }