_mainDbContext.WorkItems.Attach(existingWorkItem);_mainDbContext.Entry(existingWorkItem).State = EntityState.Modified;