Search Results for

    Show / Hide Table of Contents

    Interface ICategoryService

    The Category service provides methods for using categories

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

    Methods

    Delete(Int32)

    Delete a category (and all child categories)

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

    The id of the category to delete

    Exceptions
    Type Condition
    System.UnauthorizedAccessException

    If the user lacks access for the operation

    Find(CategoryQuery)

    Find categorys from a query

    Declaration
    IList<Category> Find(CategoryQuery q)
    Parameters
    Type Name Description
    CategoryQuery q
    Returns
    Type Description
    System.Collections.Generic.IList<Category>

    GetCategories()

    Declaration
    IList<Category> GetCategories()
    Returns
    Type Description
    System.Collections.Generic.IList<Category>

    Save(Category)

    Creates och update a category

    Declaration
    Category Save(Category category)
    Parameters
    Type Name Description
    Category category
    Returns
    Type Description
    Category

    the id of category

    Extension Methods

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