public static GradeController getInstance() ... { if (HttpContext.Current.Cache["gradeController"] == null) ...{ GradeController controller = new GradeController(); HttpContext.Current.Cache.Insert("gradeController", controller,null, System.Web.Caching.Cache.NoAbsoluteExpiration, System.Web.Caching.Cache.NoSlidingExpiration, System.Web.Caching.CacheItemPriority.High,null); return controller; } else return (GradeController)HttpContext.Current.Cache["gradeController"]; }