Add tenant services and delete services

This commit is contained in:
2025-08-07 18:37:26 -06:00
parent 6a055bc3db
commit 69e21e276c
30 changed files with 385 additions and 30 deletions

View File

@@ -21,7 +21,7 @@ namespace Core.Thalos.BFF.Api.Controllers
public class UserController(IThalosServiceClient thalosServiceClient, ILogger<UserController> logger) : BaseController(logger)
{
/// <summary>
/// Gets all the users.
/// Gets all users.
/// </summary>
[HttpGet("GetAll")]
[ProducesResponseType(StatusCodes.Status200OK)]
@@ -102,7 +102,7 @@ namespace Core.Thalos.BFF.Api.Controllers
{
logger.LogInformation($"{nameof(GetUserByIdService)} - Request received - Payload: {JsonSerializer.Serialize(request)}");
if (string.IsNullOrEmpty(request.Id)) return BadRequest("Invalid user identifier");
if (string.IsNullOrEmpty(request._Id)) return BadRequest("Invalid user identifier");
return await Handle(() => thalosServiceClient.GetUserByIdService(request, cancellationToken)).ConfigureAwait(false);
}
@@ -257,7 +257,7 @@ namespace Core.Thalos.BFF.Api.Controllers
{
logger.LogInformation($"{nameof(ChangeUserStatusService)} - Request received - Payload: {JsonSerializer.Serialize(request)}");
if (string.IsNullOrEmpty(request.Id)) { return BadRequest("Invalid user identifier"); }
if (string.IsNullOrEmpty(request._Id)) { return BadRequest("Invalid user identifier"); }
return await Handle(() => thalosServiceClient.ChangeUserStatusService(request, cancellationToken)).ConfigureAwait(false);
}