/// <summary>
        /// Save ProtectedDocumentLog
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        public ResponseModel SaveProtectedDocumentLog(string path)
        {
            if (WorkContext.CurrentUser != null)
            {
                var protectedDocumentLog = FetchFirst(l => l.UserId == WorkContext.CurrentUser.Id && l.Path.Equals(path));
                if (protectedDocumentLog == null)
                {
                    protectedDocumentLog = new ProtectedDocumentLog
                    {
                        Path   = path,
                        UserId = WorkContext.CurrentUser.Id
                    };
                    var response = Insert(protectedDocumentLog);
                    return(response.SetMessage(response.Success
                        ? T("ProtectedDocumentLog_Message_CreateSuccessfully")
                        : T("ProtectedDocumentLog_Message_CreateFailure")));
                }
            }

            return(new ResponseModel
            {
                Success = true
            });
        }
 internal ResponseModel Delete(ProtectedDocumentLog protectedDocumentLog)
 {
     return(_protectedDocumentLogRepository.Delete(protectedDocumentLog));
 }
 internal ResponseModel Insert(ProtectedDocumentLog protectedDocumentLog)
 {
     return(_protectedDocumentLogRepository.Insert(protectedDocumentLog));
 }