last works ...
This commit is contained in:
@@ -15,6 +15,7 @@ using xWebinarService.Models.Dtos;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using XFileDto = xFileService.Models.Dtos.XFileDto;
|
||||
using xModels.Dtos;
|
||||
using xTagService.Models.Dtos;
|
||||
|
||||
namespace xWebinarService.Controllers
|
||||
{
|
||||
@@ -85,7 +86,8 @@ namespace xWebinarService.Controllers
|
||||
//
|
||||
// Preparing Tags List ...
|
||||
var tagList = new List<string>();
|
||||
if (!tags.IsNullOrEmpty()) {
|
||||
if (!tags.IsNullOrEmpty())
|
||||
{
|
||||
tagList = tags
|
||||
.ParseListString<string>()
|
||||
.ToList();
|
||||
@@ -901,8 +903,8 @@ namespace xWebinarService.Controllers
|
||||
//
|
||||
var result = GetExceptionActionResult(ex);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Attach Provided Files to Specified Webinar ...
|
||||
@@ -1009,12 +1011,12 @@ namespace xWebinarService.Controllers
|
||||
var connectionId = GetConnectionId();
|
||||
|
||||
//
|
||||
var tagsList = tags.ParseListString<string>();
|
||||
await WebinarProvider
|
||||
.AttachTags(
|
||||
id: id,
|
||||
tags: tagsList,
|
||||
tags: tags,
|
||||
userInfo: userInfo,
|
||||
forceAttachToFiles: true,
|
||||
connectionId: connectionId
|
||||
);
|
||||
|
||||
@@ -1033,7 +1035,7 @@ namespace xWebinarService.Controllers
|
||||
/// Detach Specified Tags From Specified Webinar ...
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="tags"></param>
|
||||
/// <param name="tags">if null, remove all attached tags ...</param>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("{id}/Tags")]
|
||||
public virtual async Task<ActionResult> DetachTags(
|
||||
@@ -1051,12 +1053,12 @@ namespace xWebinarService.Controllers
|
||||
var connectionId = GetConnectionId();
|
||||
|
||||
//
|
||||
var tagsList = tags.ParseListString<string>();
|
||||
await WebinarProvider
|
||||
.DetachTags(
|
||||
id: id,
|
||||
tags: tagsList,
|
||||
tags: tags,
|
||||
userInfo: userInfo,
|
||||
forceDetachFromFiles: true,
|
||||
connectionId: connectionId
|
||||
);
|
||||
|
||||
@@ -1077,7 +1079,7 @@ namespace xWebinarService.Controllers
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("{id}/Tags")]
|
||||
public virtual async Task<ActionResult<IEnumerable<string>>> GetTags(
|
||||
public virtual async Task<ActionResult<IEnumerable<XTagDto>>> GetTags(
|
||||
[FromRoute] Guid id
|
||||
)
|
||||
{
|
||||
@@ -1090,14 +1092,15 @@ namespace xWebinarService.Controllers
|
||||
var userInfo = await GetUserInfo();
|
||||
|
||||
//
|
||||
await WebinarProvider
|
||||
var result = await WebinarProvider
|
||||
.GetTags(
|
||||
id: id,
|
||||
userInfo: userInfo
|
||||
);
|
||||
|
||||
//
|
||||
return Ok();
|
||||
return Ok(result
|
||||
.ToDynamicObject());
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user