C# Class BlueCollar.Dashboard.HandlerHelper

Provides a mixin of helpers for dashboard handlers.
Mostra file Open project: ChadBurggraf/blue-collar

Private Properties

Property Type Description

Public Methods

Method Description
HandlerHelper ( IDashboardHandler handler ) : System

Initializes a new instance of the HandlerHelper class.

PagingOffset ( int pageNumber ) : int

Gets the list paging offset to use for the given page number.

QueryDateValue ( string key ) : DateTime?

Gets a DateTime value from the query string.

QueryIntValue ( string key ) : int?

Gets an integer value from the query string.

RouteIntValue ( int index ) : long?

Gets an integer value from the route parameters.

Method Details

HandlerHelper() public method

Initializes a new instance of the HandlerHelper class.
public HandlerHelper ( IDashboardHandler handler ) : System
handler IDashboardHandler The handler to initialize this instance with.
return System

PagingOffset() public method

Gets the list paging offset to use for the given page number.
public PagingOffset ( int pageNumber ) : int
pageNumber int The page number to get the list paging offset for.
return int

QueryDateValue() public method

Gets a DateTime value from the query string.
public QueryDateValue ( string key ) : DateTime?
key string The key to get the value from.
return DateTime?

QueryIntValue() public method

Gets an integer value from the query string.
public QueryIntValue ( string key ) : int?
key string The key to get the value from.
return int?

RouteIntValue() public method

Gets an integer value from the route parameters.
public RouteIntValue ( int index ) : long?
index int The index of the parameter to get the value from.
return long?