public void LoadCollections() { Areas.Clear(); Operations.Clear(); Personal.Clear(); Shifts.Clear(); foreach (var area in _collectionsRepository.LoadWorkAreas()) { Areas.Add(area); } foreach (var operation in _collectionsRepository.LoadWorks()) { Operations.Add(operation); } foreach (var employee in _collectionsRepository.LoadPersonal()) { Personal.Add(employee); } foreach (var shift in _collectionsRepository.LoadShiftSet()) { Shifts.Add(shift); } }
public Persona ContratarPersonal(Persona empleado) { Personal.Add(empleado); return(empleado); }
public Recepcionista ContratarPersonal(Recepcionista empleado) { Personal.Add(empleado); return(empleado); }