Created
September 17, 2015 22:45
-
-
Save BillCacy/d1dcd73c3f88fb37efc0 to your computer and use it in GitHub Desktop.
View model used for the search results
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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