public void UpdateCompany(Company company) { _context.Entry(company).State = EntityState.Modified; }
public void UpdateTask(EmployeeTask task) { // the reason why I can comment this line of core is EF Core realtimely trace entity。 _context.Entry(task).State = EntityState.Modified; }