public List <Office> OfficeGetAll() { List <Office> offices = cacheNinja.cache["Office_GetAll"] as List <Office>; if (offices == null) { offices = officeRepo.OfficeGetAll(); cacheNinja.cache.Set("Office_GetAll", offices, cacheNinja.cacheExpiry); } return(offices); }