Task<(ForumResponse , ValidationResult )> AddTopicAsync(
Guid cardID,
TopicModel topic,
TopicAuthorAction authorAction = TopicAuthorAction.AddParticipantAndSubscribe,
CancellationToken cancellationToken = default
)
Function AddTopicAsync (
cardID As Guid,
topic As TopicModel,
Optional authorAction As TopicAuthorAction = TopicAuthorAction.AddParticipantAndSubscribe,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ( As ForumResponse, As ValidationResult))
Task<ValueTuple<ForumResponse^, ValidationResult^>>^ AddTopicAsync(
Guid cardID,
TopicModel^ topic,
TopicAuthorAction authorAction = TopicAuthorAction::AddParticipantAndSubscribe,
CancellationToken cancellationToken = CancellationToken()
)
abstract AddTopicAsync :
cardID : Guid *
topic : TopicModel *
?authorAction : TopicAuthorAction *
?cancellationToken : CancellationToken
(* Defaults:
let _authorAction = defaultArg authorAction TopicAuthorAction.AddParticipantAndSubscribe
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ValueTuple<ForumResponse, ValidationResult>>
ForumResponse - ответ на запрос.
ValidationResult, содержащий информацию по возникшим ошибкам.