public async Task <ActionResult <KnowledgeBaseTip> > PostKnowledgeBaseTip(KnowledgeBaseTip knowledgeBaseTip)
        {
            _context.Tips.Add(knowledgeBaseTip);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetKnowledgeBaseTip", new { id = knowledgeBaseTip.Id }, knowledgeBaseTip));
        }
        public async Task <IActionResult> PutKnowledgeBaseTip(long id, KnowledgeBaseTip knowledgeBaseTip)
        {
            if (id != knowledgeBaseTip.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }