Skip to content

Commit 9d9caa5

Browse files
committed
Add project files.
1 parent b46b0c1 commit 9d9caa5

File tree

109 files changed

+5542
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+5542
-0
lines changed

.nuget/nugetPackages/NuGet.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
5+
</packageSources>
6+
</configuration>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="AutoMapper" Version="13.0.1" />
11+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.7" />
12+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.7">
13+
<PrivateAssets>all</PrivateAssets>
14+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
15+
</PackageReference>
16+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.7" />
17+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.7">
18+
<PrivateAssets>all</PrivateAssets>
19+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
20+
</PackageReference>
21+
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
22+
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="8.0.1" />
23+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
24+
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.7.0" />
25+
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="6.7.0" />
26+
</ItemGroup>
27+
28+
</Project>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<ProjectReference Include="..\..\Infrastructure\Cengaver.Domain\Cengaver.Domain.csproj" />
11+
<ProjectReference Include="..\..\Infrastructure\Cengaver.Dto\Cengaver.Dto.csproj" />
12+
<ProjectReference Include="..\..\Infrastructure\Cengaver.Infrastructure\Cengaver.Infrastructure.csproj" />
13+
</ItemGroup>
14+
15+
</Project>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using Cengaver.Domain;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace Cengaver.BL.Abstractions
9+
{
10+
public interface IGuardDutyBreakService
11+
{
12+
Task<IEnumerable<GuardDutyBreak>> GetAllAsync();
13+
Task<GuardDutyBreak> GetByIdAsync(int id);
14+
Task AddAsync(GuardDutyBreak guardDutyBreak);
15+
Task UpdateAsync(GuardDutyBreak guardDutyBreak);
16+
Task DeleteAsync(int id);
17+
}
18+
19+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using Cengaver.Domain;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace Cengaver.BL.Abstractions
9+
{
10+
public interface IGuardDutyBreakTypeService
11+
{
12+
Task<IEnumerable<GuardDutyBreakType>> GetAllAsync();
13+
Task<GuardDutyBreakType> GetByIdAsync(int id);
14+
Task AddAsync(GuardDutyBreakType guardDutyBreakType);
15+
Task UpdateAsync(GuardDutyBreakType guardDutyBreakType);
16+
Task DeleteAsync(int id);
17+
}
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using Cengaver.Domain;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace Cengaver.BL.Abstractions
9+
{
10+
public interface IGuardDutyNoteService
11+
{
12+
Task<IEnumerable<GuardDutyNote>> GetAllAsync();
13+
Task<GuardDutyNote> GetByIdAsync(int id);
14+
Task AddAsync(GuardDutyNote note);
15+
Task UpdateAsync(GuardDutyNote note);
16+
Task DeleteAsync(int id);
17+
}
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using Cengaver.Domain;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace Cengaver.BL.Abstractions
9+
{
10+
public interface IGuardDutyNoteTypeService
11+
{
12+
Task<IEnumerable<GuardDutyNoteType>> GetAllAsync();
13+
Task<GuardDutyNoteType> GetByIdAsync(int id);
14+
Task AddAsync(GuardDutyNoteType noteType);
15+
Task UpdateAsync(GuardDutyNoteType noteType);
16+
Task DeleteAsync(int id);
17+
}
18+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
using Cengaver.Domain;
2+
using Cengaver.Dto;
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Linq;
6+
using System.Text;
7+
using System.Threading.Tasks;
8+
9+
namespace Cengaver.BL.Abstractions
10+
{
11+
public interface IGuardDutyService
12+
{
13+
/// <summary>
14+
/// Gets the list of all guard duties.
15+
/// </summary>
16+
/// <returns>List of guard duties.</returns>
17+
Task<List<GuardDutyDto>> GetGuardDutiesAsync();
18+
19+
/// <summary>
20+
/// Gets a specific guard duty by ID.
21+
/// </summary>
22+
/// <param name="id">The ID of the guard duty.</param>
23+
/// <returns>Details of the specified guard duty.</returns>
24+
Task<GuardDutyDto> GetGuardDutyByIdAsync(int id);
25+
26+
/// <summary>
27+
/// Adds a new guard duty.
28+
/// </summary>
29+
/// <param name="guardDutyDto">The guard duty details to add.</param>
30+
/// <returns>Result of the add operation.</returns>
31+
Task<GuardDutyDto> AddGuardDutyAsync(GuardDutyCreateDto guardDutyDto);
32+
33+
/// <summary>
34+
/// Updates an existing guard duty.
35+
/// </summary>
36+
/// <param name="id">The ID of the guard duty to update.</param>
37+
/// <param name="guardDutyDto">The updated guard duty details.</param>
38+
/// <returns>Result of the update operation.</returns>
39+
Task<GuardDutyDto> UpdateGuardDutyAsync(int id, GuardDutyDto guardDutyDto);
40+
41+
/// <summary>
42+
/// Deletes a specific guard duty by ID.
43+
/// </summary>
44+
/// <param name="id">The ID of the guard duty to delete.</param>
45+
/// <returns>Result of the delete operation.</returns>
46+
Task<bool> DeleteGuardDutyAsync(int id);
47+
}
48+
49+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using Cengaver.Domain;
2+
using Cengaver.Dto;
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Linq;
6+
using System.Text;
7+
using System.Threading.Tasks;
8+
9+
namespace Cengaver.BL.Abstractions
10+
{
11+
12+
public interface IPermissionService
13+
{
14+
Task<IEnumerable<PermissionDto>> GetAllAsync();
15+
Task<PermissionDto> GetByIdAsync(int roleId, string userPermission);
16+
Task<PermissionDto> AddAsync(PermissionDto permissionDto);
17+
Task<PermissionDto> UpdateAsync(PermissionDto permissionDto);
18+
Task<bool> DeleteAsync(int roleId, string userPermission);
19+
}
20+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using Cengaver.Dto;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace Cengaver.BL.Abstractions
9+
{
10+
public interface IRoleService
11+
{
12+
Task<IEnumerable<RoleDto>> GetRolesAsync();
13+
Task<RoleDto> GetRoleByIdAsync(int id);
14+
Task<RoleDto> AddRoleAsync(RoleCreateDto roleCreateDto);
15+
Task<RoleDto> UpdateRoleAsync(int id, RoleUpdateDto roleUpdateDto);
16+
Task<bool> DeleteRoleAsync(int id);
17+
}
18+
}
19+

0 commit comments

Comments
 (0)