Add files to parse page

This commit is contained in:
2025-11-17 17:03:43 +09:00
parent 1be00766ec
commit 60cc921a05
5 changed files with 96 additions and 1 deletions

View File

@ -0,0 +1,14 @@
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();
}
}
}