help with c#

Job ID: 34225306

Budget: $10 – $30 USD

Suppose we've got api ControllerBase.
Five requests have been made from user number one and Five requests have been made from user number two and Five requests have been made from user number three

All at the same time


We have a method that checks the balance of this user before Insert this request in the database

I want the method first user to check the balance of the request number one, and the rest of the requests for this user are under waiting
And the second user checks the balance of the request number one and the rest of the requests for this user are under waiting
And the third user checks the balance for request number one and the rest of the requests for this user are under waiting ............and


I want the best way to do this
Related categories: .NET C# Programming