Beispiel #1
0
        private void SyncKatze()
        {
            List <RemoteWork> rwl = _intensis.GetRemoteWork();

            foreach (var rwork in rwl.Where(a => a.CreatedAt.Value.Date >= DateTime.Now.Date.AddDays(-2)))
            {
                InsertIntoKatzeForEmployee(rwork);
            }
        }
Beispiel #2
0
        private void SyncKatze()
        {
            try
            {
                List <RemoteWork> rwl = _intensis.GetRemoteWork();

                foreach (var rwork in rwl.Where(a => a.CreatedAt.Value.Date >= DateTime.Now.Date.AddDays(-2)))
                {
                    InsertIntoKatzeForEmployee(rwork);
                }
            }
            catch (Exception ex)
            {
                log.Info(ex.Message);
            }
        }