public async Task <ActionResult> Manage(string rssid) { var rssModel = await ContentManagerRepository.RssInfo(rssid); var userid = Util.Common.My.id; var UserAllRss = await ContentManagerRepository.GetUserAllRss(userid); var UserAllSite = await ContentManagerRepository.GetUserAllSite(userid); var UserCategories = UserAllRss.SelectMany(s => s.categories).Distinct().ToList(); var UserTags = UserAllRss.SelectMany(s => s.tags).Distinct().ToList(); return(View(new ViewModel.BaseContent.BaseContentManageVM() { rssid = rssModel._id, rsstitle = rssModel.title, categories = UserCategories, rsses = UserAllRss, sites = UserAllSite, tags = UserTags, })); }