示例#1
0
        public List <Floor> FloorGetAll()
        {
            List <Floor> floor = cacheNinja.cache["Floor_GetAll"] as List <Floor>;

            if (floor == null)
            {
                floor = officeRepo.FloorGetAll();
                cacheNinja.cache.Set("Floor_GetAll", floor, cacheNinja.cacheExpiry);
            }
            return(floor);
        }