Existing ASP.NET API with vanilla JS SPA, WindowWatcher, Chrome extension, and MCP server. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
517 B
C#
16 lines
517 B
C#
using TaskTracker.Core.Entities;
|
|
using TaskTracker.Core.Enums;
|
|
|
|
namespace TaskTracker.Core.Interfaces;
|
|
|
|
public interface ITaskRepository
|
|
{
|
|
Task<List<WorkTask>> GetAllAsync(WorkTaskStatus? status = null, int? parentId = null, bool includeSubTasks = false);
|
|
Task<WorkTask?> GetByIdAsync(int id);
|
|
Task<WorkTask?> GetActiveTaskAsync();
|
|
Task<List<WorkTask>> GetSubTasksAsync(int parentId);
|
|
Task<WorkTask> CreateAsync(WorkTask task);
|
|
Task UpdateAsync(WorkTask task);
|
|
Task DeleteAsync(int id);
|
|
}
|