remove user consent services
This commit is contained in:
		| @@ -438,58 +438,5 @@ namespace LSA.Core.Kerberos.API.Controllers | ||||
|                 return StatusCode(500, $"Internal server error, ErrorMessage: {ex.Message}"); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Get Consent Form PDF. | ||||
|         /// </summary>   | ||||
|         /// <returns>The <see cref="BlobDownloadUriAdapter"/> found pdf.</returns> | ||||
|         /// <response code="200">The pdf found.</response> | ||||
|         /// <response code="404">The pdf not found error.</response> | ||||
|         /// <response code="500">The service internal error.</response> | ||||
|         [HttpGet] | ||||
|         [Route("GetConsentFormPDF")] | ||||
|         [ProducesResponseType(typeof(BlobDownloadUriAdapter), StatusCodes.Status200OK)] | ||||
|         [Authorize(AuthenticationSchemes = Schemes.HeathScheme)] | ||||
|         [Permission("UserManagement.Read")] | ||||
|         public async Task<IActionResult> GetConsentFormPDFService() | ||||
|         { | ||||
|             try | ||||
|             { | ||||
|                 var result = await service.GetConsentFormPDFService(); | ||||
|  | ||||
|                 return Ok(result); | ||||
|             } | ||||
|             catch (Exception ex) | ||||
|             { | ||||
|                 logger.LogError(ex, "Error in GetConsentFormPDFService"); | ||||
|                 return StatusCode(500, $"Internal server error, ErrorMessage: {ex.Message}"); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Accept user consent form. | ||||
|         /// </summary> | ||||
|         /// <returns>A <see cref="UserAdapter"/> representing | ||||
|         /// the asynchronous execution of the service.</returns> | ||||
|         /// <response code="200">The User found.</response> | ||||
|         /// <response code="404">The User not found.</response> | ||||
|         /// <response code="500">The service internal error.</response> | ||||
|         [HttpPatch("AcceptUserConsentForm")] | ||||
|         [ProducesResponseType(typeof(UserAdapter), StatusCodes.Status200OK)] | ||||
|         [Authorize(AuthenticationSchemes = $"{Schemes.HeathScheme}, {Schemes.AzureScheme}")] | ||||
|         public async Task<IActionResult> AcceptUserConsentFormAsync() | ||||
|         { | ||||
|             try | ||||
|             { | ||||
|                 var result = await service.AcceptUserConsentFormService().ConfigureAwait(false); | ||||
|  | ||||
|                 return Ok(result); | ||||
|             } | ||||
|             catch (Exception ex) | ||||
|             { | ||||
|                 logger.LogError(ex, "Error in AcceptUserConsentFormService"); | ||||
|                 return StatusCode(500, $"Internal server error, ErrorMessage: {ex.Message}"); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergio Matias Urquin
					Sergio Matias Urquin