public static MethodModel FromHeader(this MethodModel model, string parameter, string name = null) { model.Parameter(parameter).FromHeader = name ?? parameter; return(model); }
public static MethodModel FromBody(this MethodModel model, string parameter) { model.Parameter(parameter).FromBody = true; return(model); }