Initial
This commit is contained in:
13
DAL/DAL.csproj
Normal file
13
DAL/DAL.csproj
Normal 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>
|
||||
9
DAL/ITaxBandRepository.cs
Normal file
9
DAL/ITaxBandRepository.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace DAL
|
||||
{
|
||||
using Domain;
|
||||
|
||||
public interface ITaxBandRepository
|
||||
{
|
||||
Task<List<TaxBand>> GetTaxBands();
|
||||
}
|
||||
}
|
||||
20
DAL/TaxBandRepository.cs
Normal file
20
DAL/TaxBandRepository.cs
Normal 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 }
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user