Files
MainSoftware/DichtheitManagement/InspektionsObjectManager.cs
2022-05-30 17:04:24 +02:00

30 lines
848 B
C#

using DataStoring.Contract;
using DichtheitManagement.Contract;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DichtheitManagement
{
public class InspektionsObjectManager : IInspektionsObjectManager
{
private readonly IRepository<Inspektionsobjekt> _repository;
public InspektionsObjectManager(IRepository<Inspektionsobjekt> repository)
{
_repository = repository;
}
public void Add(Inspektionsobjekt inspektionsobjekt)
{
throw new NotImplementedException();
}
public List<Inspektionsobjekt> GetInspektionsobjekt(Bauvorhaben bauvorhaben)
{
return _repository.Get().Where(s => s.Bauvorhaben == bauvorhaben).ToList();
}
}
}