public virtual GroupPermissionsViewModel Get(int memberGroupId)
        {
            var isSuperUser = _intranetMemberService.IsCurrentMemberSuperUser;
            var memberGroup = _intranetMemberGroupProvider[memberGroupId];

            var permissions = _permissionsService
                              .GetForGroup(memberGroup)
                              .Map <IEnumerable <PermissionViewModel> >()
                              .OrderBy(i => i.ResourceTypeId);

            var model = new GroupPermissionsViewModel
            {
                IsSuperUser = isSuperUser,
                Permissions = permissions,
                MemberGroup = memberGroup.Map <MemberGroupViewModel>()
            };

            return(model);
        }