public static async Task<IEnumerable<CourseOffering>> GetAllCourseOfferings(SectionService ss) { try { //Get all course offerings var result = await ss.GetAllCourseOfferings(); //cache each course offering foreach (var co in result) { HttpContext.Current.Cache.Insert(co.id, co); } return result; } catch (Exception e) { ExceptionHelper.LogCaughtException(e); return new List<CourseOffering>(); } }