public TryMapping ( IHttpContext context, IPathStack path ) : bool | ||
context | IHttpContext | |
path | IPathStack | |
return | bool |
public bool TryMapping(IHttpContext context, IPathStack path)
{
string[] actions = context.Request.Form.GetValues("action");
if (actions != null)
foreach (string action in actions)
if (action.Equals(key, StringComparison.InvariantCultureIgnoreCase))
return true;
return context.Request.Form[key] != null;
}