CommentService.Insert Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Insert(Comment, ICommentable, IEnumerable, IEnumerable, bool)

Inserts a Comment object into the repository.

public static Comment Insert(Comment comment, ICommentable parent, IEnumerable<int> blobs = null, IEnumerable<int> embeds = null, bool auth = true)

Parameters

comment
Comment

Comment object to insert.

parent
ICommentable
blobs
System.Collections.Generic.IEnumerable

Ids of Blobs to attach.

embeds
System.Collections.Generic.IEnumerable
auth
bool

Returns

Comment

The inserted Comment.