Continuo fix Repository fino Job
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> AddAsync(JobTaskModel entity)
|
||||
{
|
||||
await using var dbCtx = await CreateContextAsync();
|
||||
@@ -19,6 +20,7 @@
|
||||
return await dbCtx.SaveChangesAsync() > 0;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> DeleteAsync(JobTaskModel rec2del)
|
||||
{
|
||||
// Add validation for null entity
|
||||
@@ -62,6 +64,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<List<JobTaskModel>> GetAllAsync()
|
||||
{
|
||||
await using var dbCtx = await CreateContextAsync();
|
||||
@@ -72,12 +75,14 @@
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<JobTaskModel?> GetByIdAsync(int recId)
|
||||
{
|
||||
await using var dbCtx = await CreateContextAsync();
|
||||
return await dbCtx.DbSetJobTask.FirstOrDefaultAsync(x => x.JobID == recId);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> MergeTagsAsync(int JobID, List<string> reqTagList)
|
||||
{
|
||||
await using var dbCtx = await CreateContextAsync();
|
||||
@@ -133,6 +138,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> MoveAsync(JobTaskModel selRec, bool moveUp)
|
||||
{
|
||||
// Add validation for null entity
|
||||
@@ -185,6 +191,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> UpdateAsync(JobTaskModel entity)
|
||||
{
|
||||
await using var dbCtx = await CreateContextAsync();
|
||||
|
||||
Reference in New Issue
Block a user