public IndexViewDto SearchIndexViewDto(string search) { var indexViewModel = new IndexViewDto { AllPosts = Search(search), LastCommentedPosts = GetLastCommentedPosts(), LastPosts = GetLatestPosts(WidgetSettings.LatestPostsCount), TopRatedPosts = GetTopRankedPosts() }; return(indexViewModel); }
public IndexViewDto GetIndexViewModel() { var indexViewModel = new IndexViewDto { AllPosts = GetAllPosts(), LastCommentedPosts = GetLastCommentedPosts(), LastPosts = GetLatestPosts(WidgetSettings.LatestPostsCount), TopRatedPosts = GetTopRankedPosts() }; return(indexViewModel); }