Beispiel #1
0
 public void Action_WearOrWash(Cloth cloth)
 {
     using (Context context = new Context())
     {
         context.Clothes.FirstOrDefault();
     }
 }
Beispiel #2
0
 public void AddClothes(Cloth cloth)
 {
     cloth.ID = _generalData.Clothes.Count > 0 ? _generalData.Clothes.Max(c => c.ID) + 1 : 1;
     _generalData.Clothes.Add(cloth);
 }