Events on desktop

This commit is contained in:
Dimitar Byalkov
2023-06-09 07:18:11 +02:00
parent f90e73d544
commit cc0cc3d7f7
17 changed files with 813 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Logic
{
public interface IEventRepository
{
public List<Event> GetAllEvents();
public List<Event> GetAllCurrentEvents();
public Event GetEventById(int id);
public Event CreateEvent(string title, string description, User author, DateTime publishDate, DateTime startDate, DateTime endDate);
public void UpdateEvent(int id, string title, string description, DateTime startDate, DateTime endDate);
public void DeleteEvent(int id);
}
}