public void OtelePuanVer(int puan, Otel otel) { otel.oySayisi += 1; otel.otelPuani = (otel.otelPuani * (otel.oySayisi - 1) + puan) / otel.oySayisi; otelRepository.OtelGuncelle(otel); }
public void OtelBilgiGuncelle(Otel otel) { otelAgaci.Guncelle(otel); otelRepository.OtelGuncelle(otel); }