public async Task <ActionResult <UmRole> > PostUmRole(UmRole umRole)
        {
            _context.UmRoles.Add(umRole);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetUmRole", new { id = umRole.Id }, umRole));
        }
        public async Task <IActionResult> PutUmRole(int id, UmRole umRole)
        {
            if (id != umRole.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }