Пример #1
0
 private void AddAction(string action, ResourceMemberType type)
 {
     this.Actions.Add(new ResourceAction
     {
         Action = action,
         Type = type
     });
 }
Пример #2
0
        private static List<string> GetActions(Resource builder, ResourceMemberType type)
        {
            var actions = new List<string>();
            builder.Actions.Where(a => a.Type == type).ToList()
                .ForEach(action => actions.Add(action.Action));

            return actions;
        }