15 lines
425 B
C#
15 lines
425 B
C#
using Hcs.WebApp.Data.Hcs;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Hcs.WebApp.Services
|
|
{
|
|
public class FileToParseService(IDbContextFactory<HcsDbContext> factory) : HcsServiceBase(factory)
|
|
{
|
|
public async Task<ICollection<FileToParse>> GetAllFilesToParseAsync()
|
|
{
|
|
using var context = GetNewContext();
|
|
return await context.FilesToParse.ToListAsync();
|
|
}
|
|
}
|
|
}
|