public async Task <IActionResult> PutLessonLearnedCategory(int id, LessonLearnedCategory lessonLearnedCategory)
        {
            if (id != lessonLearnedCategory.LLCategoryId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <LessonLearnedCategory> > PostLessonLearnedCategory(LessonLearnedCategory lessonLearnedCategory)
        {
            _context.LessonLearnedCategory.Add(lessonLearnedCategory);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetLessonLearnedCategory", new { id = lessonLearnedCategory.LLCategoryId }, lessonLearnedCategory));
        }