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