I18NCommander/I18N Commander/Processor/TextElementProcessor.cs

14 lines
422 B
C#
Raw Normal View History

using System.Collections;
using DataModel.Database;
using DataModel.Database.Common;
using Microsoft.EntityFrameworkCore;
namespace Processor;
public static class TextElementProcessor
{
public static Task<IAsyncEnumerable<TextElement>> GetTextElements(DataContext db, Section section)
{
return Task.FromResult(db.TextElements.Where(n => n.Section == section).AsAsyncEnumerable());
}
}