public async Task<ActionResult> Edit(Edit viewModel)
        {
            if (ModelState.IsValid)
            {
                var role = await RoleManager.FindByIdAsync(viewModel.RoleId);
                role.Name = viewModel.RoleName;
                await RoleManager.UpdateAsync(role);

                ResourceOperationPermission rop = new ResourceOperationPermission();

                rop.SaveCurrentRolePermission(viewModel);

                return RedirectToAction("Index").WithSuccess("修改群組成功");
            }
            return View();
        }
        public async Task<ActionResult> Create(Create roleViewModel)
        {
            if (ModelState.IsValid)
            {
                var role = new IdentityRole(roleViewModel.RoleName);
                var roleresult = await RoleManager.CreateAsync(role);
                if (!roleresult.Succeeded)
                {
                    ModelState.AddModelError("", roleresult.Errors.First());
                    return View(roleViewModel);
                }
                roleViewModel.RoleId = role.Id;

                ResourceOperationPermission rop = new ResourceOperationPermission();

                rop.SaveCurrentRolePermission(roleViewModel);
                return RedirectToAction("Index").WithSuccess("新增群組成功");
            }

            return View(roleViewModel);
        }