public void Edit(Employee employee) { if (employee is null) { throw new ArgumentException(nameof(employee)); } _dbContext.Attach(employee); _dbContext.Entry(employee).State = EntityState.Modified; }