28 lines
913 B
C#
28 lines
913 B
C#
using System;
|
|
using System.Threading;
|
|
using xTagService.Interfaces;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using xContentService.Models.Dtos;
|
|
using xContentService.Providers.Dtos;
|
|
using xContentService.Models.Entities;
|
|
|
|
namespace xContentService.Interfaces.Controllers
|
|
{
|
|
public interface IXContentProviderController : IXBaseProvidedHasTagController<XContent, XContentDto, Guid, XContentDtoHub>
|
|
{
|
|
/// <summary>
|
|
/// Add an item ...
|
|
/// </summary>
|
|
/// <param name="item"></param>
|
|
/// <param name="language"></param>
|
|
/// <param name="cancellationToken"></param>
|
|
/// <returns></returns>
|
|
[HttpPost("Add")]
|
|
Task<ActionResult<XContentDto>> Add(
|
|
[FromBody] XContentDto item,
|
|
[FromQuery] string language = null,
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
}
|
|
} |