Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-YousefiTelori committed Dec 25, 2023
1 parent 474febc commit b5ad67c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,14 @@ public Task<CategoryContractMessageContract> AddToContentLanguage(object item)
/// </summary>
/// <param name="items"></param>
/// <returns></returns>
public async Task<List<CategoryContractMessageContract>> AddToContentLanguage(IEnumerable items)
public Task<List<Task<CategoryContractMessageContract>>> AddToContentLanguage(IEnumerable items)
{
List<Task<CategoryContractMessageContract>> tasks = new List<Task<CategoryContractMessageContract>>();
foreach (var item in items)
{
tasks.Add(AddToContentLanguage(item));
}
await Task.WhenAll(tasks);
return tasks.Select(x => x.Result).ToList();
return Task.FromResult(tasks);
}

/// <summary>
Expand Down

0 comments on commit b5ad67c

Please sign in to comment.