c# - Web Api Redirect Incoming Events To Correct Controller -
i have basic restful web api project receive events third-party. there on 10 possible events third-party allows 2 subscriptions (a subscription contains callback url web api). rather limit myself 2 events, want create "master" controller can determine type of event being sent, , redirect json/post correct controller. here example controller have 1 of events [httppost] public async task<ihttpactionresult> create(createdobject createdobj) { await _classtohandleobj.methodtohandle(createobj); return ok(); } in json being sent, there field contains name of event. try read json , use conditional statements send it, wanted know if there best practice way of doing web api.