Exemplo n.º 1
0
 public IActionResult Post([FromBody] NewNote newNote)
 {
     if (string.IsNullOrWhiteSpace(newNote.Text))
     {
         return(BadRequest());
     }
     return(Ok(_repository.AddNewNote(newNote)));
 }