C# Class Roadkill.Core.Mvc.ViewModels.RelViewModel

Provides a data summary class for creating and saving relationship details.
Datei anzeigen Open project: LocalGovDigital/pipeline Class Usage Examples

Public Methods

Method Description
GetOrg ( int orgID ) : string

Returns the organisation name

GetRelType ( int relTypeID ) : string

Returns the organisation name

GetUser ( string username ) : string

Returns the user name

RelViewModel ( ) : System

Constructor used by none-controllers

RelViewModel ( Relationship rel ) : System

Takes all properties on Rel and fills them on in the RelViewModel

Private Methods

Method Description
GetAppSettings ( ) : Roadkill.Core.Configuration.ApplicationSettings

Method Details

GetOrg() public method

Returns the organisation name
public GetOrg ( int orgID ) : string
orgID int
return string

GetRelType() public method

Returns the organisation name
public GetRelType ( int relTypeID ) : string
relTypeID int
return string

GetUser() public method

Returns the user name
public GetUser ( string username ) : string
username string
return string

RelViewModel() public method

Constructor used by none-controllers
public RelViewModel ( ) : System
return System

RelViewModel() public method

Takes all properties on Rel and fills them on in the RelViewModel
public RelViewModel ( Relationship rel ) : System
rel Roadkill.Core.Database.Relationship
return System