/// <summary> /// To deletes the note of the records. /// </summary> /// <returns>APIResponse class instance.</returns> /// <param name="note">ZCRMNote class instance</param> public APIResponse DeleteNote(ZCRMNote note) { if (note.Id == null) { throw new ZCRMException("Note ID MUST be null for Delete Operation"); } return(ZCRMModuleRelation.GetInstance(this, "Notes").DeleteNote(note)); }
/// <summary> /// To delete the note of the module relation records based on ZCRMNote class instance. /// </summary> /// <returns>APIResponse class instance.</returns> /// <param name="note">ZCRMNote class instance</param> public APIResponse DeleteNote(ZCRMNote note) { return(RelatedListAPIHandler.GetInstance(parentRecord, this).DeleteNote(note)); }