Skip to content

Commit

Permalink
Merge pull request #4700 from abpframework/maliming-patch-1
Browse files Browse the repository at this point in the history
Use parameterInfo.Name when modelNameProvider.Name is null.
  • Loading branch information
hikalkan authored Jul 17, 2020
2 parents 95babec + 3199b5d commit 96c7ece
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public string GetMethodParamName(ParameterInfo parameterInfo)
return parameterInfo.Name;
}

return modelNameProvider.Name;
return modelNameProvider.Name ?? parameterInfo.Name;
}

private static string GetRootPath([NotNull] Type controllerType, [CanBeNull] ConventionalControllerSetting setting)
Expand Down

0 comments on commit 96c7ece

Please sign in to comment.