Exemple #1
0
        public void RemoveAttachment(OCL.User AccessingUser,OCL.Attachment FileAttachment)
        {
            OCL.Functions F = new OCL.Functions();
            //OCL.Recording R = F.GetRecording(this.RecordingID);
            OCL.Note CNote = F.GetNote(mvarID);

            //			if(R.OwnerID == AccessingUser.ID)
            //			{
                if(CNote.HasAttachment)
                {
                    try
                    {
                        F.RemoveNoteAttachment(mvarID,FileAttachment.ID);
                    }
                    catch(Exception Err)
                    {
                        throw new Exception(Err.Message);
                    }
                }
            //			}
        }