public async Task<bool> BulkMovetoCompletedFiles(List<tbl_ScanedFiles> files)
{
try
{
bool result = false;
List<bool> responseResult = new List<bool>();
if (files.Count > 0)
{
foreach (var item in files)
{
responseResult.Add(await MovetoCompletedFiles(item.FileName, item.DivisionName, item.CountryName));
}
if (responseResult.All(x => x == true))
{
result = true;
}
}
return result;
}
catch (Exception ex)
{
throw ex;
}
}
No comments:
Post a Comment