repo bedrijf

This commit is contained in:
mathieusteen 2020-12-11 16:14:37 +01:00
parent 8644d8c81f
commit ae2fc02378
2 changed files with 4 additions and 4 deletions

View File

@ -26,10 +26,10 @@ namespace AlfaPrentice.Controllers
} }
[HttpGet("{Bedrijf_ID}")] [HttpGet("{Bedrijf_ID}")]
public async Task<IEnumerable<Bedrijf>> GetBedrijf(int Bedrijf_ID) public IEnumerable<Bedrijf> GetBedrijf(int Bedrijf_ID)
{ {
var bedrijf = bedrijfRepo.GetBedrijf(Bedrijf_ID); var bedrijf =bedrijfRepo.GetBedrijf(Bedrijf_ID);
return await bedrijf; return bedrijf;
} }

View File

@ -8,7 +8,7 @@ namespace AlfaPrentice.Repositorys.Interfaces
{ {
public interface IBedrijfRepository public interface IBedrijfRepository
{ {
Task<IEnumerable<Bedrijf>> GetBedrijf(int Bedrijf_ID); Bedrijf GetBedrijf(int Bedrijf_ID);
//drijf GetBedrijf(int Bedrijf_ID); //drijf GetBedrijf(int Bedrijf_ID);
} }
} }