public async Task <ActionResult <Quize> > Post(QuizeDto item)
        {
            var q = new Quize
            {
                Id          = item.Id,
                Description = item.Description,
                Name        = item.Name
            };
            var created = await _quizesRepository.Create(q);

            return(CreatedAtAction(
                       nameof(this.Get),
                       new { id = created.Id },
                       created));
        }
        public async Task <IActionResult> Update(long id, QuizeDto item)
        {
            if (id != item.Id)
            {
                return(BadRequest());
            }

            var up = new Quize
            {
                Id          = item.Id,
                Description = item.Description,
                Name        = item.Name
            };

            var updated = await _repository.Update(up, id);

            if (updated == null)
            {
                return(NotFound());
            }

            return(NoContent());
        }