WPF hinzugefügt
This commit is contained in:
27
DichtheitManagement/BaustelleManager.cs
Normal file
27
DichtheitManagement/BaustelleManager.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using DataStoring.Contract;
|
||||
using DichtheitManagement.Contract;
|
||||
using Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace DichtheitManagement
|
||||
{
|
||||
public class BaustelleManager : IBaustelleManager
|
||||
{
|
||||
private readonly IRepository<Bauvorhaben> _repository;
|
||||
|
||||
public BaustelleManager(IRepository<Bauvorhaben> repository)
|
||||
{
|
||||
_repository = repository;
|
||||
}
|
||||
|
||||
public void Add(Bauvorhaben bauvorhaben) => _repository.Insert(bauvorhaben);
|
||||
|
||||
public IQueryable<Bauvorhaben> GetAllBauvorhaben()
|
||||
{
|
||||
return _repository.Query;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user