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 Delete(User entity)
 {
     if (entity.GetType() == typeof(Doctor))
     {
         _doctorService.Delete((Doctor)entity);
     }
     if (entity.GetType() == typeof(Director))
     {
         _directorService.Delete((Director)entity);
     }
     if (entity.GetType() == typeof(Secretary))
     {
         _secretaryService.Delete((Secretary)entity);
     }
     if (entity.GetType() == typeof(Patient))
     {
         _patientService.Delete((Patient)entity);
     }
 }