public async Task <IActionResult> PutDimRole(int id, DimRole dimRole)
        {
            if (id != dimRole.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <DimRole> > PostDimRole(DimRole dimRole)
        {
            _context.DimRole.Add(dimRole);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (DimRoleExists(dimRole.Id))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetDimRole", new { id = dimRole.Id }, dimRole));
        }