repo bedrijf
This commit is contained in:
parent
8644d8c81f
commit
ae2fc02378
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user