Ejemplo n.º 1
0
        /// <summary>
        ///     Returns the DataSync Entity with provided id
        /// </summary>
        /// <param name="lastSyncId">The last synchronize identifier.</param>
        /// <returns></returns>
        protected virtual DataSync GetLastSync(int lastSyncId)
        {
            var dsRepo   = new DataSyncRepository(CurrentDbContext);
            var lastSync = dsRepo.GetSingle(sync => sync.Id == lastSyncId);

            return(lastSync);
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Gets the Last DataSync recorded for a specific Kiosk
        /// </summary>
        /// <param name="kioskId"></param>
        /// <returns></returns>
        public virtual DataSync GetLastDataSyncByKiosk(int kioskId)
        {
            var syncRepo = new DataSyncRepository(CurrentDbContext);

            return(syncRepo.GetSingle(x => x.KioskId == kioskId));
        }