Lets say we have a list with 156 items and we need to have them in 50 batches with take and skip methods, I have done below code but don't know how to skip previous items and if the rest of code is correct:
var mailAccounts = mailRepo.GetAllMailAccounts();
int total = mailAccounts.Count;
int batch = 50;
int batchNumbers = total / batch;
for (int i = 0; i < batchNumbers; i++)
{
mailAccounts.Skip(Previous Items).Take(batch);
await FetchEmails(mailAccounts);
}