Ejemplo n.º 1
0
 public ActionResult NearPhrases(int id)
 {
     var phraseProvider = new PhraseProvider();
     var phrases = phraseProvider.GetNearPhrasesEntityModel(CurrentUser.AccountID, id, SourceType.Context);
     var phraseDomains = phraseProvider.GetDomainsStatsForPhraseIds(phrases.Select(ph => ph.PhraseID).ToArray());
     return View(new NearPhraseStatsModel(GetBaseModel(), phraseDomains, phrases));
 }
Ejemplo n.º 2
0
 public ActionResult ExportNearPhrases(int id)
 {
     var phraseProvider = new PhraseProvider();
     var phrases = phraseProvider.GetNearPhrasesEntityModel(CurrentUser.AccountID, id, SourceType.Context);
     var phraseDomains = phraseProvider.GetDomainsStatsForPhraseIds(phrases.Select(ph => ph.PhraseID).ToArray());
     return SearchPhraseController.BuildExportCsv(phraseDomains, phrases.FirstOrDefault()?.Text ?? "empty");
 }
Ejemplo n.º 3
0
 public ActionResult PhraseDomains(int id)
 {
     LogAction(SpywordsActions.ContextPhrasePhraseDomains, id);
     var phraseProvider = new PhraseProvider();
     var phraseDomains = phraseProvider.GetDomainsStatsForAccountPhrase(CurrentUser.AccountID, id, SourceType.Context);
     var phrase = phraseProvider.GetPhraseEntityModel(CurrentUser.AccountID, id, SourceType.Context);
     return View(new DomainStatsModel(GetBaseModel(), phraseDomains, phrase));
 }
Ejemplo n.º 4
0
 public ActionResult ExportPhraseDomains(int id)
 {
     LogAction(SpywordsActions.ContextPhrasePhraseDomains, id);
     var phraseProvider = new PhraseProvider();
     var phraseDomains = phraseProvider.GetDomainsStatsForAccountPhrase(CurrentUser.AccountID, id, SourceType.Context);
     var phrase = phraseProvider.GetPhraseEntityModel(CurrentUser.AccountID, id, SourceType.Context);
     return SearchPhraseController.BuildExportCsv(phraseDomains, phrase.Text);
 }
Ejemplo n.º 5
0
 // GET: Phrase
 public ActionResult Index()
 {
     LogAction(SpywordsActions.ContextPhraseIndex, null);
     var phrases = new PhraseProvider().GetPhrasesForAccount(CurrentUser.AccountID, SourceType.Context);
     return View(new PhraseModel(GetBaseModel(), phrases));
 }