[]
        
(Showing Draft Content)

C1.Web.Api.C1ApiController.Location

Location Method

Location(Expression<Func<Func<IHttpActionResult>>>, IDictionary<string, object>)

Returns an absolute url for the specified action.

Declaration
protected string Location(Expression<Func<Func<IHttpActionResult>>> expression, IDictionary<string, object> values = null)
Parameters
Type Name Description
Expression<Func<Func<IHttpActionResult>>> expression

The expression which returns the function of calling the action method.

IDictionary<string, object> values

The dictionary that contains the parameters for the action.

Returns
Type Description
string

The absolute url for the specified action.

Examples

Location(()=>this.Action);

Location<T1>(Expression<Func<Func<T1, IHttpActionResult>>>, IDictionary<string, object>)

Returns an absolute url for the specified action.

Declaration
protected string Location<T1>(Expression<Func<Func<T1, IHttpActionResult>>> expression, IDictionary<string, object> values = null)
Parameters
Type Name Description
Expression<Func<Func<T1, IHttpActionResult>>> expression

The expression which returns the function of calling the action method.

IDictionary<string, object> values

The dictionary that contains the parameters for the action.

Returns
Type Description
string

The absolute url for the specified action.

Type Parameters
Name Description
T1
Examples

Location<string>(()=>this.Action);

Location<T1, T2>(Expression<Func<Func<T1, T2, IHttpActionResult>>>, IDictionary<string, object>)

Returns an absolute url for the specified action.

Declaration
protected string Location<T1, T2>(Expression<Func<Func<T1, T2, IHttpActionResult>>> expression, IDictionary<string, object> values = null)
Parameters
Type Name Description
Expression<Func<Func<T1, T2, IHttpActionResult>>> expression

The expression which returns the function of calling the action method.

IDictionary<string, object> values

The dictionary that contains the parameters for the action.

Returns
Type Description
string

The absolute url for the specified action.

Type Parameters
Name Description
T1
T2
Examples

Location<string, string>(()=>this.Action);

Location<T1, T2, T3>(Expression<Func<Func<T1, T2, T3, IHttpActionResult>>>, IDictionary<string, object>)

Returns an absolute url for the specified action.

Declaration
protected string Location<T1, T2, T3>(Expression<Func<Func<T1, T2, T3, IHttpActionResult>>> expression, IDictionary<string, object> values = null)
Parameters
Type Name Description
Expression<Func<Func<T1, T2, T3, IHttpActionResult>>> expression

The expression which returns the function of calling the action method.

IDictionary<string, object> values

The dictionary that contains the parameters for the action.

Returns
Type Description
string

The absolute url for the specified action.

Type Parameters
Name Description
T1
T2
T3
Examples

Location<string, string, string>(()=>this.Action);

Location<T1, T2, T3, T4>(Expression<Func<Func<T1, T2, T3, T4, IHttpActionResult>>>, IDictionary<string, object>)

Returns an absolute url for the specified action.

Declaration
protected string Location<T1, T2, T3, T4>(Expression<Func<Func<T1, T2, T3, T4, IHttpActionResult>>> expression, IDictionary<string, object> values = null)
Parameters
Type Name Description
Expression<Func<Func<T1, T2, T3, T4, IHttpActionResult>>> expression

The expression which returns the function of calling the action method.

IDictionary<string, object> values

The dictionary that contains the parameters for the action.

Returns
Type Description
string

The absolute url for the specified action.

Type Parameters
Name Description
T1
T2
T3
T4
Examples

Location<string, string, string, string>(()=>this.Action);

Location<T1, T2, T3, T4, T5>(Expression<Func<Func<T1, T2, T3, T4, T5, IHttpActionResult>>>, IDictionary<string, object>)

Returns an absolute url for the specified action.

Declaration
protected string Location<T1, T2, T3, T4, T5>(Expression<Func<Func<T1, T2, T3, T4, T5, IHttpActionResult>>> expression, IDictionary<string, object> values = null)
Parameters
Type Name Description
Expression<Func<Func<T1, T2, T3, T4, T5, IHttpActionResult>>> expression

The expression which returns the function of calling the action method.

IDictionary<string, object> values

The dictionary that contains the parameters for the action.

Returns
Type Description
string

The absolute url for the specified action.

Type Parameters
Name Description
T1
T2
T3
T4
T5
Examples

Location<string, string, string, string, string>(()=>this.Action);

Location(string, IDictionary<string, object>)

Returns an absolute url for the specified action.

Declaration
protected string Location(string actionName, IDictionary<string, object> values = null)
Parameters
Type Name Description
string actionName

The name of the action.

IDictionary<string, object> values

The dictionary that contains the parameters for the action.

Returns
Type Description
string

The absolute url for the specified action.

Location(MethodInfo, IDictionary<string, object>)

Returns an absolute url for the specified action.

Declaration
protected string Location(MethodInfo methodInfo, IDictionary<string, object> values = null)
Parameters
Type Name Description
MethodInfo methodInfo

The method for the action.

IDictionary<string, object> values

The dictionary that contains the parameters for the action.

Returns
Type Description
string

The absolute url for the specified action.