public async Task <IActionResult> PutTms_NotesComments(int id, Tms_NotesComments tms_NotesComments)
        {
            if (id != tms_NotesComments.CommentId)
            {
                return(BadRequest());
            }

            _context.Entry(tms_NotesComments).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!Tms_NotesCommentsExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <ActionResult <Tms_NotesComments> > PostTms_NotesComments(Tms_NotesComments tms_NotesComments)
        {
            _context.NotesComments2.Add(tms_NotesComments);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (Tms_NotesCommentsExists(tms_NotesComments.CommentId))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetTms_NotesComments", new { id = tms_NotesComments.CommentId }, tms_NotesComments));
        }