NEW: IEventRegistrationService Initial Interface Definition

This commit is contained in:
Konstantin Hintermayer
2025-05-12 09:34:55 +02:00
parent f884c684e1
commit 6e8f14d11d

View File

@ -1,3 +1,4 @@
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -5,14 +6,21 @@ namespace SZUAbsolventenverein.Module.EventRegistration.Services
{ {
public interface IEventRegistrationService public interface IEventRegistrationService
{ {
Task<List<Models.Event>> GetEventRegistrationsAsync(int ModuleId); /* Reine Events */
Task<List<Models.Event>> GetEventsAsync(int ModuleId);
Task<Models.Event> GetEventRegistrationAsync(int EventRegistrationId, int ModuleId); Task<Models.Event> AddEventAsync(Models.Event NewEvent);
Task<Models.Event> AddEventRegistrationAsync(Models.Event EventRegistration); Task<Models.Event> UpdateEventAsync(Models.Event NewEvent);
Task<Models.Event> UpdateEventRegistrationAsync(Models.Event EventRegistration); Task DeleteEventAsync(int EventId, int ModuleId);
Task DeleteEventRegistrationAsync(int EventRegistrationId, int ModuleId);
/* Events & Responses */
Task<Models.Response> AddOrUpdateResponseAsync(int EventId, int ModuleId, bool ResponseType);
Task<(Models.Event, Models.Response)> GetEventDetails(int EventId, int ModuleId);
Task<List<Models.Response>> GetEventResponses(int EventId, int ModuleId);
} }
} }