Implement parsing

This commit is contained in:
2025-11-22 11:10:03 +09:00
parent 8095bf8ebc
commit dfb60cb9f0
8 changed files with 102 additions and 13 deletions

View File

@ -27,6 +27,12 @@ namespace Hcs.WebApp.Services
return fileToParse;
}
public async Task<FileToParse> GetFileToParseByOperationIdAsync(int operationId)
{
using var context = GetNewContext();
return await GetFileToParseByOperationIdAsync(context, operationId);
}
public async Task<FileToParse> GetFileToParseByOperationIdAsync(HcsDbContext context, int operationId)
{
return await context.FilesToParse.SingleAsync(x => x.LastParseOperationId == operationId);