ChronoFlow/ChronoFlow.Persistence/ITimeEntryRepository.cs
2025-06-12 13:41:27 +02:00

18 lines
606 B
C#

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using ChronoFlow.Model;
namespace ChronoFlow.Persistence
{
public interface ITimeEntryRepository
{
Task<List<Zeiteintrag>> GetEntriesForUserAsync(string username);
Task UpdateEntryStatusAndCommentAsync(int id, bool isCompleted, string? comment);
// (Optional) Weitere Methoden für Admin-Funktionen:
Task<List<Zeiteintrag>> GetAllEntriesAsync(); // Admin
Task AddEntryAsync(Zeiteintrag entry); // Admin
Task DeleteEntryAsync(int id); // Admin
}
}