From ae2fc023780841783f7406259f754ecad97ae109 Mon Sep 17 00:00:00 2001 From: mathieusteen Date: Fri, 11 Dec 2020 16:14:37 +0100 Subject: [PATCH] repo bedrijf --- AlfaPrentice/Controllers/BedrijfController.cs | 6 +++--- AlfaPrentice/Repositorys/Interfaces/IBedrijfRepository.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AlfaPrentice/Controllers/BedrijfController.cs b/AlfaPrentice/Controllers/BedrijfController.cs index f9d5a61..1cfea8a 100644 --- a/AlfaPrentice/Controllers/BedrijfController.cs +++ b/AlfaPrentice/Controllers/BedrijfController.cs @@ -26,10 +26,10 @@ namespace AlfaPrentice.Controllers } [HttpGet("{Bedrijf_ID}")] - public async Task> GetBedrijf(int Bedrijf_ID) + public IEnumerable GetBedrijf(int Bedrijf_ID) { - var bedrijf = bedrijfRepo.GetBedrijf(Bedrijf_ID); - return await bedrijf; + var bedrijf =bedrijfRepo.GetBedrijf(Bedrijf_ID); + return bedrijf; } diff --git a/AlfaPrentice/Repositorys/Interfaces/IBedrijfRepository.cs b/AlfaPrentice/Repositorys/Interfaces/IBedrijfRepository.cs index 4787f2a..b572025 100644 --- a/AlfaPrentice/Repositorys/Interfaces/IBedrijfRepository.cs +++ b/AlfaPrentice/Repositorys/Interfaces/IBedrijfRepository.cs @@ -8,7 +8,7 @@ namespace AlfaPrentice.Repositorys.Interfaces { public interface IBedrijfRepository { - Task> GetBedrijf(int Bedrijf_ID); + Bedrijf GetBedrijf(int Bedrijf_ID); //drijf GetBedrijf(int Bedrijf_ID); } }