public IActionResult OnPost(List <int> SelectedPermission)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            role.isDelete = false;
            int roleid = _permissionService.Addrole(role);

            _permissionService.AddPermissiontoRole(roleid, SelectedPermission);

            return(RedirectToPage("Index"));
        }