refactor(core): DTOs und Services an Core 2.0.0.0 angepasst

This commit is contained in:
Developer 02
2024-09-20 00:53:28 +02:00
parent 8d88148b98
commit 9458ffae42
17 changed files with 39 additions and 44 deletions

View File

@@ -18,7 +18,7 @@ namespace DigitalData.UserManager.Application.Services
public async Task<DataResult<int>> CreateAsync(DirectoryGroupDto adGroup)
{
var group = _mapper.MapOrThrow<Group>(adGroup);
var group = _mapper.Map<Group>(adGroup);
//set the user
var user = await GetUserAsync();
@@ -31,7 +31,7 @@ namespace DigitalData.UserManager.Application.Services
if (createdGroup is null)
return Result.Fail<int>();
else
return Result.Success(KeyValueOf(createdGroup));
return Result.Success(createdGroup.Id);
}
}
}