Search Results for

    Show / Hide Table of Contents

    Interface IEventCategoryRepository

    Namespace: OEMS.Core.Domain.RepoInterfaces
    Assembly: OEMS.Core.dll
    Syntax
    public interface IEventCategoryRepository

    Methods

    AddAsync(EventCategory)

    Neue Kategorie anlegen.

    Declaration
    Task AddAsync(EventCategory category)
    Parameters
    Type Name Description
    EventCategory category
    Returns
    Type Description
    Task

    CheckCategoryNamesForDuplicates(string)

    Checks if category name already exists for the given organization.

    Declaration
    Task<bool> CheckCategoryNamesForDuplicates(string name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    Task<bool>

    CheckIfEventWithCategory(Guid, Guid)

    Checks if any event is already assigned to the location.

    Declaration
    Task<(bool hasAnyAssociatedEvents, List<string> EventNames)> CheckIfEventWithCategory(Guid orgId, Guid categoryId)
    Parameters
    Type Name Description
    Guid orgId
    Guid categoryId
    Returns
    Type Description
    Task<(bool hasAny, List<string> eventNames)>

    DeleteAsync(Guid)

    Kategorie per Id löschen.

    Declaration
    Task DeleteAsync(Guid id)
    Parameters
    Type Name Description
    Guid id
    Returns
    Type Description
    Task

    GetAllAsync()

    Alle Kategorien zurückliefern.

    Declaration
    Task<IEnumerable<EventCategory>> GetAllAsync()
    Returns
    Type Description
    Task<IEnumerable<EventCategory>>

    GetAllByOrganizationAsync(Guid)

    Alle Kategorien einer Organisation zurückliefern.

    Declaration
    Task<IEnumerable<EventCategory>> GetAllByOrganizationAsync(Guid organizationId)
    Parameters
    Type Name Description
    Guid organizationId
    Returns
    Type Description
    Task<IEnumerable<EventCategory>>

    GetByIdAsync(Guid)

    Eine Kategorie per Id zurückliefern.

    Declaration
    Task<EventCategory> GetByIdAsync(Guid id)
    Parameters
    Type Name Description
    Guid id
    Returns
    Type Description
    Task<EventCategory>

    UpdateAsync(EventCategory)

    Bestehende Kategorie aktualisieren.

    Declaration
    Task UpdateAsync(EventCategory category)
    Parameters
    Type Name Description
    EventCategory category
    Returns
    Type Description
    Task
    In this article
    Back to top Generated by DocFX