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