Add files to parse page
This commit is contained in:
14
Hcs.WebApp/Services/FileToParseService.cs
Normal file
14
Hcs.WebApp/Services/FileToParseService.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user