Esempio n. 1
0
 private void CheckAuthentication(int RUserId, string TKey)
 {
     if (!Authentication.CheckTokenAuthentication(RUserId, TKey))
     {
         Logger.AddLog(LogTypeEnum.Warn, "CustomerManager.CheckAuthentication", RUserId, ExceptionMessageHelper.UnauthorizedAccess(RUserId), null);
         throw new KnownException(ErrorTypeEnum.AuthorizeException, ExceptionMessageHelper.UnauthorizedAccess(RUserId), string.Empty);
     }
 }