public IActionResult Put(int noteId, [FromBody] KeepNote note) { var result = handler.UpdateNote(noteId, note); if (result == null) { return(NotFound("No notes exists with that id to update")); } return(Ok(result)); }
public IActionResult Post([FromBody] KeepNote note) { bool result = handler.AddNote(note); return(Created("/api/KeepNote", result)); }