I have a question about methods and static classes given the code below:
static List<MaterialRCM> mr = new List<MaterialRCM>();
[Authorize]
public void AddMaterial(int Qtd, int Id)
{
mr.Add(new MaterialRCM(Id, Qtd));
}
Now, how are static classes and methods not types by reference, if two users use the same functionality, you run the risk of having both users' data in the list? To be clearer, this method is called via Ajax, each time the user adds a material this method is called and adds the Material Id and quantity in the list, and if two users are requesting materials?