public override void Save(int idPracownika) { try { if (Id == 0) { badanieDb.id_pracownika = idPracownika; DbAdapterEF.BadanieInsert(this); } else { DbAdapterEF.BadanieUpdate(this); } } catch (Exception ex) { log.Error(ex); throw ex; } }