14 lines
417 B
C#
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);
|
|
}
|
|
}
|