Notes/Controllers/NoteController.cs
2023-07-28 14:52:53 -04:00

21 lines
468 B
C#

using BinaryDad.Notes.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace BinaryDad.Notes.Controllers;
[Authorize]
public class NoteController : Controller
{
private readonly INoteService noteService;
public NoteController(INoteService noteService) => this.noteService = noteService;
public IActionResult Index()
{
var content = noteService.Get();
return View((object)content);
}
}