I saw a code that is used in webapis .net core having. Since this class is created at one time. So how we can guarantee that multiple calls are isolated. Is this right approach. What are the problems here?.
Because of one api web request GetLocation was called with id =6 and some other values for _order object and for another api web request GetLocation was called with id =9.It happen at same time. So are these calls to method are isolated?
I'm not talking about DI or other separation
public static class Common
{
public static Location GetLocation(long id, Order _order)
{
-- We create instance of our business classes and Data access layer
--Inside here Database queries and buisness logic
--
}
}