This commit is contained in:
2023-11-27 06:56:03 +02:00
commit 343564fcc0
236 changed files with 101156 additions and 0 deletions

13
DAL/DAL.csproj Normal file
View File

@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Domain\Domain.csproj" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,9 @@
namespace DAL
{
using Domain;
public interface ITaxBandRepository
{
Task<List<TaxBand>> GetTaxBands();
}
}

20
DAL/TaxBandRepository.cs Normal file
View File

@@ -0,0 +1,20 @@
namespace DAL
{
using Domain;
public class TaxBandRepository : ITaxBandRepository
{
public async Task<List<TaxBand>> GetTaxBands()
{
// You can implement logic here to fetch tax bands from a data source.
// For now, let's create a sample list.
return new List<TaxBand>
{
new TaxBand { LowerLimit = 0, UpperLimit = 5000, TaxRate = 0 },
new TaxBand { LowerLimit = 5000, UpperLimit = 20000, TaxRate = 20 },
new TaxBand { LowerLimit = 20000, UpperLimit = null, TaxRate = 40 }
};
}
}
}