Add tenant services and delete services
This commit is contained in:
		| @@ -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); | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user