Interface IEventCategoryRepository
Assembly: OEMS.Core.dll
Syntax
public interface IEventCategoryRepository
Methods
AddAsync(EventCategory)
Declaration
Task AddAsync(EventCategory category)
Parameters
Returns
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
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
DeleteAsync(Guid)
Kategorie per Id löschen.
Declaration
Task DeleteAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
GetAllAsync()
Alle Kategorien zurückliefern.
Declaration
Task<IEnumerable<EventCategory>> GetAllAsync()
Returns
GetAllByOrganizationAsync(Guid)
Alle Kategorien einer Organisation zurückliefern.
Declaration
Task<IEnumerable<EventCategory>> GetAllByOrganizationAsync(Guid organizationId)
Parameters
Type |
Name |
Description |
Guid |
organizationId |
|
Returns
GetByIdAsync(Guid)
Eine Kategorie per Id zurückliefern.
Declaration
Task<EventCategory> GetByIdAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
UpdateAsync(EventCategory)
Bestehende Kategorie aktualisieren.
Declaration
Task UpdateAsync(EventCategory category)
Parameters
Returns