Пример #1
0
 public GroupInformationDetailsViewModel(IGroup group, IGroupRole role)
 {
     Id          = group.Id;
     Name        = group.Name;
     Description = group.Description;
     Roles       = group.Roles;
     Actions     = Actions = new GroupActionViewModel(role);
 }
        public GroupActionViewModel(IGroupRole groupRole)
        {
            var actions = groupRole.ActionDictionary;

            AddMember    = actions[GroupActions.AddMember];
            RemoveMember = actions[GroupActions.RemoveMember];
            ViewMember   = actions[GroupActions.ViewMember];
        }