public IActionResult CreateNote(NotePostRequest note)
        {
            if (_userManager.CurrentUser == null)
            {
                return(Unauthorized());
            }

            NoteGetResponse newNote = _dataRepository.CreateNote(note);

            return(Ok(newNote));
        }
        public IActionResult UpdateNote(int Id, [FromBody] NotePostRequest note)
        {
            if (_userManager.CurrentUser == null)
            {
                return(Unauthorized());
            }

            NoteGetResponse updatedNote = _dataRepository.UpdateNote(Id, note);

            if (updatedNote != null)
            {
                return(Ok(updatedNote));
            }
            else
            {
                return(NotFound());
            }
        }
        public IActionResult GetNotes(int Id)
        {
            if (_userManager.CurrentUser == null)
            {
                return(Unauthorized());
            }

            NoteGetResponse note = _dataRepository.GetNote(Id);

            if (note != null)
            {
                return(Ok(note));
            }
            else
            {
                return(NotFound());
            }
        }