From deacd1a8c6bd5ae2be3f17007e9c5dd42e33e63c Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 6 Nov 2024 14:57:14 +0100 Subject: [PATCH] fix: Parameter in den ReadAllAsync-Methoden in UserRepController und UserRepService explizit benennen --- DigitalData.UserManager.API/Controllers/UserRepController.cs | 5 +++-- .../Services/UserRepService.cs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/DigitalData.UserManager.API/Controllers/UserRepController.cs b/DigitalData.UserManager.API/Controllers/UserRepController.cs index 7a7286b..3fc0188 100644 --- a/DigitalData.UserManager.API/Controllers/UserRepController.cs +++ b/DigitalData.UserManager.API/Controllers/UserRepController.cs @@ -19,13 +19,14 @@ namespace DigitalData.UserManager.API.Controllers { return base.GetAll(); } - + [HttpGet] public async Task GetAll(bool withUser = false, bool withRepGroup = false, bool withGroup = false, bool withRepUser = false, int? userId = null, int? groupId = null) { try { - return await _service.ReadAllAsync(withUser, withRepGroup, withGroup, withRepUser, userId, groupId).ThenAsync(Ok, IActionResult (m, n) => + return await _service.ReadAllAsync(withUser: withUser, withRepGroup: withRepGroup, withGroup: withGroup, withRepUser: withRepUser, + userId: userId, groupId: groupId).ThenAsync(Ok, IActionResult (m, n) => { _logger.LogNotice(n); return NotFound(); diff --git a/DigitalData.UserManager.Application/Services/UserRepService.cs b/DigitalData.UserManager.Application/Services/UserRepService.cs index b25e964..fd7ba1d 100644 --- a/DigitalData.UserManager.Application/Services/UserRepService.cs +++ b/DigitalData.UserManager.Application/Services/UserRepService.cs @@ -17,7 +17,7 @@ namespace DigitalData.UserManager.Application.Services public async Task>> ReadAllAsync(bool withUser = false, bool withRepGroup = false, bool withGroup = false, bool withRepUser = false, int? userId = null, int? groupId = null) { - var urs = await _repository.ReadAllAsync(withUser, withRepGroup, withGroup, withRepUser, userId, groupId); + var urs = await _repository.ReadAllAsync(withUser: withUser, withRepGroup: withRepGroup, withGroup: withGroup, withRepUser: withRepUser, userId: userId, groupId: groupId); var urReadDTOs = _mapper.Map>(urs); return Result.Success(urReadDTOs); }