C# Class WebApiDemo.Extensions

显示文件 Open project: smichelotti/WebAPI-presentation

Public Methods

Method Description
ApiLink ( this urlHelper, int id ) : Uri
ApiLink ( this urlHelper, int id, string controller, string routeName = "DefaultApi" ) : Uri
ApiLink ( this urlHelper, string controller ) : Uri

Method Details

ApiLink() public static method

public static ApiLink ( this urlHelper, int id ) : Uri
urlHelper this
id int
return System.Uri

ApiLink() public static method

public static ApiLink ( this urlHelper, int id, string controller, string routeName = "DefaultApi" ) : Uri
urlHelper this
id int
controller string
routeName string
return System.Uri

ApiLink() public static method

public static ApiLink ( this urlHelper, string controller ) : Uri
urlHelper this
controller string
return System.Uri