How will Route parameters look like, if the request link is like this:
Cash/Users/{UserId}/Transactions?PartnerUserSessionKey={PartnerUserSessionKey}
Something like this?
[Route("cash/users/{userid}/transactions")]
private void CreateCashTransaction(int userid,[FromUri] Transaction transaction, Someclass otherinfo) {}
Where Someclass is additional info which is not included in Url
I think SomeClass needs to be the first param in the function.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.