PlotDirector/PlotLine/Controllers/TimelineController.cs
2026-06-01 09:03:59 +01:00

14 lines
417 B
C#

using Microsoft.AspNetCore.Mvc;
using PlotLine.Services;
namespace PlotLine.Controllers;
public sealed class TimelineController(ITimelineService timeline) : Controller
{
public async Task<IActionResult> Index(int projectId, int? bookId, int? selectedSceneId)
{
var model = await timeline.GetAsync(projectId, bookId, selectedSceneId);
return model is null ? NotFound() : View(model);
}
}