Adding tests

This commit is contained in:
2025-03-28 22:15:39 +01:00
parent d52c385e7c
commit 366962abfa
13 changed files with 271 additions and 16 deletions

View File

@@ -116,6 +116,9 @@ public class RoleService : BaseService, IRoleService
public async Task<Role?> UpdateRoleAsync(CreateRoleRequestData data, Role role)
{
if (role.IsNotEditable)
return role;
using var transaction = await _sqlServerContext.Database.BeginTransactionAsync();
try