Search Results for

    Show / Hide Table of Contents

    Interface ICollectionService

    Service for accessing Collection

    Namespace: ImageVault.Common.Services
    Assembly: ImageVault.Common.dll
    Syntax
    public interface ICollectionService : IService

    Methods

    AddItemsToCollection(Int32, Int32[])

    Adds items to a collection

    Declaration
    void AddItemsToCollection(int collectionId, int[] mediaItemIds)
    Parameters
    Type Name Description
    System.Int32 collectionId
    System.Int32[] mediaItemIds

    Delete(Int32)

    Deletes a collection

    Declaration
    void Delete(int id)
    Parameters
    Type Name Description
    System.Int32 id

    The id of the collection

    GetAll()

    Gets all collections

    Declaration
    IList<Collection> GetAll()
    Returns
    Type Description
    System.Collections.Generic.IList<Collection>

    GetById(Int32)

    Gets a specific collection

    Declaration
    Collection GetById(int id)
    Parameters
    Type Name Description
    System.Int32 id

    The id of the collection

    Returns
    Type Description
    Collection

    RemoveItemsFromCollection(Int32, Int32[])

    Removes items from a collection

    Declaration
    void RemoveItemsFromCollection(int collectionId, int[] mediaItemIds)
    Parameters
    Type Name Description
    System.Int32 collectionId
    System.Int32[] mediaItemIds

    Save(Collection)

    Creates or updates a collection

    Declaration
    Collection Save(Collection collection)
    Parameters
    Type Name Description
    Collection collection

    The collection to update

    Returns
    Type Description
    Collection

    Extension Methods

    EnumExtensions.GetNames<TEnum>(TEnum)
    In This Article
    Back to top (c) Meriworks 2002-2022