Implement parsing
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user