public async Task <ActionResult <hashtagDTO> > PostHashtagItem(hashtagDTO item)
        {
            item.id_hashtag = new t_hashtag().Incluir(item.hashtag_name);

            _context.hashtagItems.Add(item);
            _context.SaveChanges();

            new t_log().Incluir("[HttpPost]", "PostHashtagItem(hashtagDTO " + item.ToString() + ")", "INFO");

            return(CreatedAtAction(nameof(GetHashtagItem), new { id = item.id_hashtag }, item));
        }
        public async Task <IActionResult> PutHashtagItem(long id, hashtagDTO item)
        {
            if (id != item.id_hashtag)
            {
                return(BadRequest());
            }

            new t_hashtag().Alterar(id, item.hashtag_name);

            _context.Entry(item).State = EntityState.Modified;
            _context.SaveChanges();

            new t_log().Incluir("[HttpPut(\"{ id}\")]", "PutHashtagItem(long " + id.ToString() + ", hashtagDTO " + item.ToString() + ")", "INFO");

            return(NoContent());
        }