Initial commit - ECommerce project

This commit is contained in:
2026-08-05 23:58:33 +03:00
commit bcebac18e7
63 changed files with 4543 additions and 0 deletions
@@ -0,0 +1,27 @@
// using System;
// using System.Collections.Generic;
// using System.Linq;
// using System.Threading.Tasks;
// namespace Commerce.Core.Utility;
// public static class IEnumerableExtensions
// {
// public static IEnumerable<List<T>> Batch<T>(this IEnumerable<T> source, int batchSize)
// {
// var batch = new List<T>(batchSize);
// foreach (var item in source)
// {
// batch.Add(item);
// if (batch.Count == batchSize)
// {
// yield return batch;
// batch = new List<T>(batchSize);
// }
// }
// if (batch.Count > 0)
// {
// yield return batch;
// }
// }
// }