コード例 #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));
 }
コード例 #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");
 }
コード例 #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));
 }
コード例 #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);
 }
コード例 #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));
 }