Example #1
0
        private void DeleteCache(int id)
        {
            //int iType = UntilityFunction.IntegerForNull(DDL_CategoryType.SelectedValue);
            int iType = UntilityFunction.IntegerForNull(DDL_CategoryType1.SelectedValue);

            CacheController.GetNews_Delete(id);

            //GetListNews(int oType)
            CacheController.GetListNews_Delete1(iType);

            //GetListNews(int oType, int iCurent)
            var oList = ServiceFactory.GetInstanceNews().GetAllNewsByType(iType);

            foreach (var newsInfo in oList)
            {
                //GetListNews(int oType, int iCurent)
                CacheController.GetListNews_Delete2(iType, newsInfo.pk_Id);

                //GetListNewsOtherColumn(int oType, int column,int iCurent)
                CacheController.GetListNewsOtherColumn_Delete(iType, newsInfo.pk_Id);
            }

            //GetListNewsColumn(int oType,int column)
            CacheController.GetListNewsColumn_Delete(iType);

            //GetListTronGoi(int oType)
            CacheController.GetListTronGoi_Delete(iType);
        }
Example #2
0
        private void DeleteCache(int iType)
        {
            //GetListNews(int oType)
            CacheController.GetListNews_Delete1(iType);

            //GetListNews(int oType, int iCurent)
            var oList = ServiceFactory.GetInstanceNews().GetAllNewsByType(iType);

            foreach (var newsInfo in oList)
            {
                //GetListNews(int oType, int iCurent)
                CacheController.GetListNews_Delete2(iType, newsInfo.pk_Id);

                //GetListNewsOtherColumn(int oType, int column,int iCurent)
                CacheController.GetListNewsOtherColumn_Delete(iType, newsInfo.pk_Id);
            }

            //GetListNewsColumn(int oType,int column)
            CacheController.GetListNewsColumn_Delete(iType);

            //GetListTronGoi(int oType)
            CacheController.GetListTronGoi_Delete(iType);
        }