public void Edit(User entity) { if (entity.GetType() == typeof(Doctor)) { _doctorService.Edit((Doctor)entity); } else if (entity.GetType() == typeof(Patient)) { _patientService.Edit((Patient)entity); } else if (entity.GetType() == typeof(Secretary)) { _secretaryService.Edit((Secretary)entity); } else if (entity.GetType() == typeof(Director)) { _directorService.Edit((Director)entity); } }
public void Edit(Secretary entity) { _secretaryService.Edit(entity); }