Implement parse campaign manager
This commit is contained in:
@ -26,5 +26,13 @@ namespace Hcs.WebApp.Services
|
||||
await context.SaveChangesAsync();
|
||||
return fileToParse;
|
||||
}
|
||||
|
||||
public async Task SetOperationToFileToParseAsync(HcsDbContext context, int fileToParseId, Operation operation)
|
||||
{
|
||||
var fileToParse = await context.FilesToParse.FirstOrDefaultAsync(x => x.Id == fileToParseId);
|
||||
fileToParse!.LastParseOperationId = operation.Id;
|
||||
|
||||
await context.SaveChangesAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user