From 29a804b018ce3e405fe32c768dd469b66954a1f5 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Thu, 18 Dec 2025 20:00:37 +0330 Subject: [PATCH] Refactor AttachMany/DetachMany Actions on XWebinarService Controllers ... --- Controllers/XWebinarServiceControllerBase.cs | 4 ++-- Interfaces/IXWebinarServiceControllerActions.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Controllers/XWebinarServiceControllerBase.cs b/Controllers/XWebinarServiceControllerBase.cs index b344218..7b16b97 100644 --- a/Controllers/XWebinarServiceControllerBase.cs +++ b/Controllers/XWebinarServiceControllerBase.cs @@ -952,7 +952,7 @@ namespace xWebinarService.Controllers /// /// /// - [HttpGet("{id}/Files/AttachMany")] + [HttpPost("{id}/Files/AttachMany")] public virtual async Task AttachFiles( [FromRoute] Guid id, [FromQuery] string ids @@ -992,7 +992,7 @@ namespace xWebinarService.Controllers /// /// if null, detach all files ... /// - [HttpGet("{id}/Files/DetachMany")] + [HttpDelete("{id}/Files/DetachMany")] public virtual async Task DetachFiles( [FromRoute] Guid id, [FromQuery] string ids = null diff --git a/Interfaces/IXWebinarServiceControllerActions.cs b/Interfaces/IXWebinarServiceControllerActions.cs index 0e3477b..ed19808 100644 --- a/Interfaces/IXWebinarServiceControllerActions.cs +++ b/Interfaces/IXWebinarServiceControllerActions.cs @@ -220,7 +220,7 @@ namespace xWebinarService.Interfaces /// /// /// - [HttpGet("{id}/Files/AttachMany")] + [HttpPost("{id}/Files/AttachMany")] Task AttachFiles( [FromRoute] Guid id, [FromQuery] string ids @@ -232,7 +232,7 @@ namespace xWebinarService.Interfaces /// /// if null, detach all files ... /// - [HttpGet("{id}/Files/DetachMany")] + [HttpDelete("{id}/Files/DetachMany")] Task DetachFiles( [FromRoute] Guid id, [FromQuery] string ids = null