Skip to content

Instantly share code, notes, and snippets.

@BillCacy
Created September 17, 2015 22:45
Show Gist options
  • Save BillCacy/d1dcd73c3f88fb37efc0 to your computer and use it in GitHub Desktop.
Save BillCacy/d1dcd73c3f88fb37efc0 to your computer and use it in GitHub Desktop.
View model used for the search results
using System.Collections.Generic;
namespace YOURNAMESPACE.ViewModels.Common.Components.Search
{
public class SearchResultsViewModel
{
public string ViewPath { get { return Constants.Components.SearchResultsViewPath; } }
public IEnumerable<SiteSearchResult> SearchResults { get; set; }
public int TotalPageCount { get; set; }
public int TotalResults { get; set; }
public string PagingViewPath { get { return Constants.Components.SearchResultsPagingViewPath; } }
public string SearchTerm { get; set; }
public int CurrentPage { get; set; }
public string ResultPageUrl { get;set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment