xxxxxxxxxx
foreach (var maxloan in maxloanList)
{
if (maxloan.Key > 25000)
{
return maxlaon.Key;
}
}
xxxxxxxxxx
foreach (string field in fieldsList)
{
if (retrievedOrderLine.Attributes.Contains(field))
{
orderLine[field] = retrievedOrderLine[field];
}
}
xxxxxxxxxx
foreach (var item in filtererdServiceJourneyListM1)
{
var ServiceJourneyListM1 = datedVehicleJourneynewList.Where(x => ((JourneyRef)x.Item).@ref == item.id).ToList();
if (ServiceJourneyListM1.Count > 0)
{
filteredServiceDatedVehicleJourneyListM1.AddRange(ServiceJourneyListM1);
}
}
xxxxxxxxxx
decimal aaa = 0m;
foreach (var p in payments)
{
var wkdays = p.ForeignWorkdayCount + p.UkWorkdayCount;
aaa += p.TotalAmount * p.UkWorkdayCount / wkdays;
}
return aaa;
xxxxxxxxxx
foreach (var customer in customers)
{
customer.Email = !string.IsNullOrEmpty(customer.Name) && !string.IsNullOrEmpty(customer.Last) ? $"{customer.Name}.{customer.Last}{customer.Email.Substring(customer.Email.IndexOf("@"))}" : customer.Email;
}