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