Class ListService
Provides a service to retrieve and manipulate lists of items.
Inheritance
object
ListService
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DataWeb.Data
Assembly: DataWeb.Core.dll
Syntax
public class ListService : IListService
Constructors
ListService(IListStore)
Initializes a new instance of the ListService class with the specified list store.
Declaration
public ListService(IListStore listStore)
Parameters
Type | Name | Description |
---|---|---|
IListStore | listStore | The list store to use for retrieving lists. |
Methods
GetListAsync(string, string)
Gets a list of items by name and culture.
Declaration
public Task<List> GetListAsync(string name, string culture = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the list to retrieve. |
string | culture | The culture for which to retrieve the list. If null, the default culture is used. |
Returns
Type | Description |
---|---|
Task<List> | The list of items. |
GetListsAsync(string)
Gets all lists of items in the specified culture.
Declaration
public Task<IEnumerable<List>> GetListsAsync(string culture = null)
Parameters
Type | Name | Description |
---|---|---|
string | culture | The culture for which to retrieve the lists. If null, the default culture is used. |
Returns
Type | Description |
---|---|
Task<IEnumerable<List>> | An enumerable collection of lists of items. |