eLearning.WebAPI icon indicating copy to clipboard operation
eLearning.WebAPI copied to clipboard

api verison with same RoutePrefix will throw an exception

Open chengwhynot opened this issue 10 years ago • 0 comments

two controllers with same RoutePrefix, using current LearningControllerSelector will throw an null reference exception, because of the routeData.Values["controller"] is null.

According to this answer, I changed the SelectController(), and named all my controllers using naming convension ...V1(2 and etc)Controller , now it can find correct controller

chengwhynot avatar Feb 03 '15 13:02 chengwhynot