Exemple #1
0
        public void DeleteFile(Int64 idAttachment, String baseFilePath, String baseThumbnailPath) //, String BasePath
        {
            Int64 DraftMsgId = View.DraftMsgId;

            if (idAttachment < 0 || DraftMsgId < 0)
            {
                return;
            }

            if (!CheckSessionAccess())
            {
                return;
            }

            service.AttachmentDelete(idAttachment, baseFilePath, baseThumbnailPath);
            InitView();
        }
Exemple #2
0
        public void DeleteFile(Int64 idAttachment, String baseFilePath, String baseThumbnailPath) //, String BasePath
        {
            Int64 DraftMsgId = View.DraftMsgId;

            if (idAttachment < 0 || DraftMsgId < 0)
            {
                return;
            }

            if (!CheckUser() || View.CurrentUser.PersonId <= 0)
            {
                return;
            }

            service.AttachmentDelete(idAttachment, View.CurrentUser.UserId, baseFilePath, baseThumbnailPath);

            this.InitView();
        }