public List <Company> CompanyGetAll() { List <Company> company = cacheNinja.cache["Company_GetAll"] as List <Company>; if (company == null) { company = officeRepo.CompanyGetAll(); cacheNinja.cache.Set("Office_GetAll", company, cacheNinja.cacheExpiry); } return(company); }