You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
574 B
19 lines
574 B
using Server.Dto.Request;
|
|
using Server.Dto.Response;
|
|
using Shared.Criteria;
|
|
|
|
namespace Server.IServices;
|
|
|
|
public interface IEventsService
|
|
{
|
|
Task<ResponseEventDto?> GetEventById(string id);
|
|
|
|
Task<(long Count, IEnumerable<ResponseEventDto> Events)> GetEvents
|
|
(string? title, int page, int size, EventOrderCriteria orderCriteria = EventOrderCriteria.Date,
|
|
bool ascending = true);
|
|
|
|
Task<ResponseEventDto?> CreateEvent(RequestEventDto evt);
|
|
Task<ResponseEventDto?> UpdateEvent(string id, RequestEventDto evt);
|
|
Task<bool> DeleteEvent(string id);
|
|
}
|