public void Update(Dependent updateEntity) { context.Entry(updateEntity).State = EntityState.Modified; }
public void Remove(Dependent removeEntity) { context.Dependents.Remove(removeEntity); }
public void RemoveDependent(Dependent removeEntity) { DependentRepository dependentRepository = new DependentRepository(context); dependentRepository.Remove(removeEntity); }
public void Add(Dependent addEntity) { context.Dependents.Add(addEntity); }
public void AddDependent(Dependent addEntity) { DependentRepository dependentRepository = new DependentRepository(context); dependentRepository.Add(addEntity); }