Add tenant services and delete services
This commit is contained in:
		| @@ -5,7 +5,6 @@ using Lib.Architecture.BuildingBlocks; | ||||
| using LSA.Dashboard.External.Clients.Dashboard; | ||||
| using Microsoft.AspNetCore.Authorization; | ||||
| using Microsoft.AspNetCore.Mvc; | ||||
| using Microsoft.Graph; | ||||
| using System.Text.Json; | ||||
|  | ||||
| namespace Core.Thalos.BFF.Api.Controllers | ||||
| @@ -22,7 +21,7 @@ namespace Core.Thalos.BFF.Api.Controllers | ||||
|     public class PermissionController(IThalosServiceClient thalosServiceClient, ILogger<PermissionController> logger) : BaseController(logger) | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// Gets all the permissions. | ||||
|         /// Gets all permissions. | ||||
|         /// </summary> | ||||
|         [HttpGet("GetAll")] | ||||
|         [ProducesResponseType(StatusCodes.Status200OK)] | ||||
| @@ -48,7 +47,7 @@ namespace Core.Thalos.BFF.Api.Controllers | ||||
|         } | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Gets all the permissions by permission identifiers. | ||||
|         /// Gets all permissions by permission identifiers. | ||||
|         /// </summary> | ||||
|         /// <param name="request">The request containing the list of permission identifiers.</param> | ||||
|         /// <param name="cancellationToken">Cancellation token for the asynchronous operation.</param> | ||||
| @@ -136,7 +135,7 @@ namespace Core.Thalos.BFF.Api.Controllers | ||||
|             { | ||||
|                 logger.LogInformation($"{nameof(GetPermissionByIdService)} - Request received - Payload: {JsonSerializer.Serialize(request)}"); | ||||
|  | ||||
|                 if (string.IsNullOrEmpty(request.Id)) return BadRequest("Invalid permission identifier"); | ||||
|                 if (string.IsNullOrEmpty(request._Id)) return BadRequest("Invalid permission identifier"); | ||||
|  | ||||
|                 return await Handle(() => thalosServiceClient.GetPermissionByIdService(request, cancellationToken)).ConfigureAwait(false); | ||||
|             } | ||||
| @@ -198,7 +197,7 @@ namespace Core.Thalos.BFF.Api.Controllers | ||||
|             { | ||||
|                 logger.LogInformation($"{nameof(ChangePermissionStatusService)} - Request received - Payload: {JsonSerializer.Serialize(request)}"); | ||||
|  | ||||
|                 if (string.IsNullOrEmpty(request.Id)) { return BadRequest("Invalid permission identifier"); } | ||||
|                 if (string.IsNullOrEmpty(request._Id)) { return BadRequest("Invalid permission identifier"); } | ||||
|  | ||||
|                 return await Handle(() => thalosServiceClient.ChangePermissionStatusService(request, cancellationToken)).ConfigureAwait(false); | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user