Adnan Hussain
Adnan Hussain

Reputation: 1

Routing issue for the simple post api

I have a action in controller which is returning a class which hold only a message like

public Result UpdateTestCaseExecution(string appSecret, string appKey)
        {
            Result result = new Result();

            try.....
        }

problem is in routing this is the route i've made but its not getting hit

routes.MapRoute(
                name: "UpdateTestCaseExecution",
                url: "{controller}/{action}/{appsecret}/{appkey}",
                defaults: new { controller = "Dynamic", action = "UpdateTestCaseExecution", appsecret = UrlParameter.Optional, appkey = UrlParameter.Optional }
          );

Upvotes: 0

Views: 32

Answers (0)

Related Questions