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(); }
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(); }