Archetektur angefangen

This commit is contained in:
HuskyTeufel
2021-01-31 22:15:43 +01:00
parent 9f8e167ce3
commit 7a733b92d2
44 changed files with 564 additions and 67 deletions

View File

@@ -0,0 +1,27 @@
using KanSan.CrossCutting.DataClasses;
using KanSan.DataStoring.Contract;
using KundenManagement.Contract;
using System;
using System.Collections.Generic;
using System.Linq;
namespace KundenManagment
{
public class KundeManager : IKundeManager
{
private readonly IRepository<Kunde> _repository;
public KundeManager(IRepository<Kunde> repository)
{
_repository = repository;
}
public List<Kunde> GetAllKunden()
{
return _repository
.Query
.Where(p => p.ID >= 0)
.ToList();
}
}
}

View File

@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\DataStoring.Contract\DataStoring.Contract.csproj" />
<ProjectReference Include="..\KundenManagement.Contract\KundenManagement.Contract.csproj" />
</ItemGroup>
</Project>