public IActionResult UQPDSection([FromBody] UQPDSection item)
        {
            if (item == null)
            {
                return(BadRequest());
            }

            item.Id = _context.UQPDSections.Count() + 1;
            _context.UQPDSections.Add(item);
            _context.SaveChanges();

            return(CreatedAtRoute("GetUQPDSection", new { id = item.Id }, item));
        }
        public IActionResult Update(long id, [FromBody] UQPDSection item)
        {
            if (item == null || item.Id != id)
            {
                return(BadRequest());
            }

            var section = _context.UQPDSections.FirstOrDefault(t => t.Id == id);

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

            section.Name        = item.Name;
            section.Description = item.Description;

            _context.UQPDSections.Update(section);
            _context.SaveChanges();
            return(new NoContentResult());
        }