Пример #1
0
        public ActionResult Index()
        {
            CreativeSearch.AddUpdateLuceneIndex(CreativeService.GetAllCreativesForLucene());
            var allTags = TagService.GetMostPopularTags();

            return(View(allTags));
        }
Пример #2
0
 private void RemoveCreativesFromDatabase(Creative creative)
 {
     if (creative != null)
     {
         dataBaseContext.Creatives.Remove(creative);
         CreativeSearch.ClearLuceneIndexRecord(creative.Id);
     }
 }
Пример #3
0
 private void DeleteCreatives(ICollection <Creative> creatives)
 {
     if (creatives != null)
     {
         foreach (var c in creatives)
         {
             c.User   = null;
             c.UserId = null;
             DeleteCreativeRatings(c);
             CreativesRepository.Remove(c.Id);
             CreativeSearch.ClearLuceneIndexRecord(c.Id);
         }
     }
 }