wip making UI actions for notes
This commit is contained in:
@@ -25,7 +25,15 @@ public class NoteController : Controller
|
||||
return View(model);
|
||||
}
|
||||
|
||||
[Route("{noteName}/delete")]
|
||||
[HttpPost, Route("create")]
|
||||
public IActionResult Create(string noteName)
|
||||
{
|
||||
noteService.SaveNote(noteName);
|
||||
|
||||
return Redirect($"/{noteName}");
|
||||
}
|
||||
|
||||
[Route("delete/{noteName}")]
|
||||
public IActionResult Delete(string noteName)
|
||||
{
|
||||
noteService.DeleteNote(noteName);
|
||||
|
Reference in New Issue
Block a user