public void StoreWashSession(WashSession washSession) { foreach (var clothingArticle in washSession.Clothes) { _clothesRepository.UpdateClothingArticle(clothingArticle); } _washSessions.InsertOneAsync(washSession).Wait(); }
public void StoreWashSession(WashSession washSession) { _context.WashSessions.Add(washSession); }