Datenschnittstelle erweitert
This commit is contained in:
@@ -24,7 +24,22 @@ namespace DichtheitManagement
|
||||
|
||||
public IQueryable<Bauvorhaben> GetAllBauvorhaben()
|
||||
{
|
||||
return _repository.Get(includeProperties: "Auftraggeber");
|
||||
return _repository.Get(includeProperties: "Auftraggeber,Prüfobjekte");
|
||||
}
|
||||
|
||||
public Bauvorhaben GetBauvorhaben(int id)
|
||||
{
|
||||
return _repository.Get().Where(s => s.Id == id).FirstOrDefault();
|
||||
}
|
||||
|
||||
public List<Bauvorhaben> GetBauvorhaben(Auftraggeber auftraggeber)
|
||||
{
|
||||
return _repository.Get().Where(s => s.Auftraggeber == auftraggeber).ToList();
|
||||
}
|
||||
|
||||
public void Update(Bauvorhaben bauvorhaben)
|
||||
{
|
||||
_repository.Update(bauvorhaben);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user