public ActionResult Index() { CreativeSearch.AddUpdateLuceneIndex(CreativeService.GetAllCreativesForLucene()); var allTags = TagService.GetMostPopularTags(); return(View(allTags)); }
private void RemoveCreativesFromDatabase(Creative creative) { if (creative != null) { dataBaseContext.Creatives.Remove(creative); CreativeSearch.ClearLuceneIndexRecord(creative.Id); } }
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); } } }