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)); }
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); }