MessageService.Get Method

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

Overloads

Get(IEnumerable, bool) Gets a list of Message objects from the repository.
Get(int, bool) Gets the specified Message.

Get(IEnumerable, bool)

Gets a list of Message objects from the repository.

public static IEnumerable<Message> Get(IEnumerable<int> ids, bool filter = true)

Parameters

ids
System.Collections.Generic.IEnumerable

Ids of the messages to get.

filter
bool

Returns

System.Collections.Generic.IEnumerable

Returns a list of Message objects.

Get(int, bool)

Gets the specified Message.

public static Message Get(int id, bool filter = true)

Parameters

id
int

Id of the post.

filter
bool

true to filter out messages where the user does not have View permission, otherwise false.

Returns

Message

Returns an instance of the Message class.