C# Class Worki.Web.Helpers.ModelHelper

Afficher le fichier Open project: tah91/eworkyWebSite

Méthodes publiques

Méthode Description
AbsoluteAction ( this url, string action, string controller, object routeValues ) : string
GetAuthData ( IMembershipService service, string key ) : AuthJson
GetAuthData ( this member ) : AuthJson
GetCalandarEvent ( this booking, System.Web.Mvc.UrlHelper url, bool showOffer = false ) : CalandarJson
GetDetailFullUrl ( this rental, System.Web.Mvc.UrlHelper urlHelper ) : string
GetDetailFullUrl ( this loc, System.Web.Mvc.UrlHelper urlHelper, string culture = null ) : string
GetErrors ( this dbException ) : string
GetJson ( this localisation, Controller controller ) : LocalisationJson
GetJson ( this localisation, Controller controller, SearchCriteria criteria ) : LocalisationJson
GetJson ( this offer ) : OfferJson
GetMetaData ( this provider, System.Web.Mvc.UrlHelper urlHelper ) : MetaData
GetNews ( int memberId, IEnumerable bookings, string>.Func linkFunction ) : List
GetNews ( int memberId, IEnumerable quotations, string>.Func linkFunction ) : List
GetOfferDropDown ( Offer offer, string>.Func urlMaker, OfferDropDownFilter filter = OfferDropDownFilter.None ) : DropDownModel

Private Methods

Méthode Description
GetImageUrl ( string image ) : string

Method Details

AbsoluteAction() public static méthode

public static AbsoluteAction ( this url, string action, string controller, object routeValues ) : string
url this
action string
controller string
routeValues object
Résultat string

GetAuthData() public static méthode

public static GetAuthData ( IMembershipService service, string key ) : AuthJson
service IMembershipService
key string
Résultat AuthJson

GetAuthData() public static méthode

public static GetAuthData ( this member ) : AuthJson
member this
Résultat AuthJson

GetCalandarEvent() public static méthode

public static GetCalandarEvent ( this booking, System.Web.Mvc.UrlHelper url, bool showOffer = false ) : CalandarJson
booking this
url System.Web.Mvc.UrlHelper
showOffer bool
Résultat Worki.Data.Models.CalandarJson

GetDetailFullUrl() public static méthode

public static GetDetailFullUrl ( this rental, System.Web.Mvc.UrlHelper urlHelper ) : string
rental this
urlHelper System.Web.Mvc.UrlHelper
Résultat string

GetDetailFullUrl() public static méthode

public static GetDetailFullUrl ( this loc, System.Web.Mvc.UrlHelper urlHelper, string culture = null ) : string
loc this
urlHelper System.Web.Mvc.UrlHelper
culture string
Résultat string

GetErrors() public static méthode

public static GetErrors ( this dbException ) : string
dbException this
Résultat string

GetJson() public static méthode

public static GetJson ( this localisation, Controller controller ) : LocalisationJson
localisation this
controller Controller
Résultat LocalisationJson

GetJson() public static méthode

public static GetJson ( this localisation, Controller controller, SearchCriteria criteria ) : LocalisationJson
localisation this
controller Controller
criteria SearchCriteria
Résultat LocalisationJson

GetJson() public static méthode

public static GetJson ( this offer ) : OfferJson
offer this
Résultat OfferJson

GetMetaData() public static méthode

public static GetMetaData ( this provider, System.Web.Mvc.UrlHelper urlHelper ) : MetaData
provider this
urlHelper System.Web.Mvc.UrlHelper
Résultat Worki.Data.Models.MetaData

GetNews() public static méthode

public static GetNews ( int memberId, IEnumerable bookings, string>.Func linkFunction ) : List
memberId int
bookings IEnumerable
linkFunction string>.Func
Résultat List

GetNews() public static méthode

public static GetNews ( int memberId, IEnumerable quotations, string>.Func linkFunction ) : List
memberId int
quotations IEnumerable
linkFunction string>.Func
Résultat List

GetOfferDropDown() public static méthode

public static GetOfferDropDown ( Offer offer, string>.Func urlMaker, OfferDropDownFilter filter = OfferDropDownFilter.None ) : DropDownModel
offer Worki.Data.Models.Offer
urlMaker string>.Func
filter OfferDropDownFilter
Résultat DropDownModel