C# Class Worki.Service.RentalSearchService

Inheritance: IRentalSearchService
ファイルを表示 Open project: tah91/eworkyWebSite

Public Methods

Method Description
FillSearchResults ( RentalSearchCriteria &criteria ) : void

Fill search results from criteria search matching rental in repository

GetCriteria ( System.Web.HttpRequestBase parameters ) : RentalSearchCriteria

private method to create a SearchCriteria object from route data used to create search criteria from an url

GetRVD ( RentalSearchCriteria criteria, int page = 1 ) : RouteValueDictionary

private method to create route data from a SearchCriteria object used to pass search criteria in url

GetSingleResult ( System.Web.HttpRequestBase parameters, int index ) : RentalSearchSingleResultViewModel

Get single result for a given index, within search results

RentalSearchService ( ILogger logger, IGeocodeService geocodeService ) : System

Method Details

FillSearchResults() public method

Fill search results from criteria search matching rental in repository
public FillSearchResults ( RentalSearchCriteria &criteria ) : void
criteria RentalSearchCriteria
return void

GetCriteria() public method

private method to create a SearchCriteria object from route data used to create search criteria from an url
public GetCriteria ( System.Web.HttpRequestBase parameters ) : RentalSearchCriteria
parameters System.Web.HttpRequestBase
return RentalSearchCriteria

GetRVD() public method

private method to create route data from a SearchCriteria object used to pass search criteria in url
public GetRVD ( RentalSearchCriteria criteria, int page = 1 ) : RouteValueDictionary
criteria RentalSearchCriteria
page int
return RouteValueDictionary

GetSingleResult() public method

Get single result for a given index, within search results
public GetSingleResult ( System.Web.HttpRequestBase parameters, int index ) : RentalSearchSingleResultViewModel
parameters System.Web.HttpRequestBase parameters from which to build result
index int index of the result item
return RentalSearchSingleResultViewModel

RentalSearchService() public method

public RentalSearchService ( ILogger logger, IGeocodeService geocodeService ) : System
logger ILogger
geocodeService IGeocodeService
return System