public ActionResult<Note> Create([FromBody] Note newNoteData) { try { var userId = HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value; newNoteData.UserId = userId; return Ok(_ns.CreateNewNote(newNoteData)); } catch (Exception e) { return BadRequest(e.Message); } }