C# Class Worki.Web.Helpers.ModelHelper

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

Public Methods

Method 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

Method Description
GetImageUrl ( string image ) : string

Method Details

AbsoluteAction() public static method

public static AbsoluteAction ( this url, string action, string controller, object routeValues ) : string
url this
action string
controller string
routeValues object
return string

GetAuthData() public static method

public static GetAuthData ( IMembershipService service, string key ) : AuthJson
service IMembershipService
key string
return AuthJson

GetAuthData() public static method

public static GetAuthData ( this member ) : AuthJson
member this
return AuthJson

GetCalandarEvent() public static method

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

GetDetailFullUrl() public static method

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

GetDetailFullUrl() public static method

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

GetErrors() public static method

public static GetErrors ( this dbException ) : string
dbException this
return string

GetJson() public static method

public static GetJson ( this localisation, Controller controller ) : LocalisationJson
localisation this
controller Controller
return LocalisationJson

GetJson() public static method

public static GetJson ( this localisation, Controller controller, SearchCriteria criteria ) : LocalisationJson
localisation this
controller Controller
criteria SearchCriteria
return LocalisationJson

GetJson() public static method

public static GetJson ( this offer ) : OfferJson
offer this
return OfferJson

GetMetaData() public static method

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

GetNews() public static method

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

GetNews() public static method

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

GetOfferDropDown() public static method

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