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

15 lines
361 B
C#

using Microsoft.AspNetCore.Mvc;
using BinaryDad.Notes.Services;
namespace BinaryDad.Notes.Controllers
{
public class ApiController : ControllerBase
{
private readonly INoteService noteService;
public ApiController(INoteService noteService) => this.noteService = noteService;
public string Note() => noteService.Get();
}
}