Updating
This commit is contained in:
+2
-1
@@ -145,6 +145,7 @@ public class JobRepository : BaseRepository, IJobRepository
|
||||
public async Task<Job> Update(Job job)
|
||||
{
|
||||
var trackedJob = await _context.Jobs
|
||||
.IncludeErrorRecipients()
|
||||
.FirstAsync(j => j.JobId == job.JobId);
|
||||
|
||||
_context.Entry(trackedJob).CurrentValues.SetValues(job);
|
||||
@@ -156,4 +157,4 @@ public class JobRepository : BaseRepository, IJobRepository
|
||||
{
|
||||
_context.Jobs.Remove(job);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user