method renames
This commit is contained in:
@ -11,6 +11,6 @@ namespace BinaryDad.Notes.Controllers
|
||||
public ApiController(INoteService noteService) => this.noteService = noteService;
|
||||
|
||||
[Route("note/{noteName}")]
|
||||
public string Note(string noteName) => noteService.GetText(noteName);
|
||||
public string Note(string noteName) => noteService.GetNote(noteName);
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ public class NoteController : Controller
|
||||
var model = new ContentModel
|
||||
{
|
||||
CurrentNote = noteName,
|
||||
Text = noteService.GetText(noteName),
|
||||
Text = noteService.GetNote(noteName),
|
||||
NoteNames = noteService.GetNoteNames()
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user