public IActionResult CreateNameNote(NameNotes nameNote)
        {
            CheckCurrentUser();
            var result = _dataService.CreateNameNote(nameNote.Uconst, nameNote.Nconst, nameNote.Notes);

            return(Ok(result));
        }
        public IActionResult UpdateNameNote(NameNotes nameNotes)
        {
            CheckCurrentUser();
            var result = _dataService.GetNameNote(nameNotes.Uconst, nameNotes.Nconst);

            if (result != null)
            {
                _dataService.UpdateNameNote(nameNotes.Uconst, nameNotes.Nconst, nameNotes.Notes);

                return(Ok(nameNotes));
            }

            return(NotFound());
        }