private void AddAction(string action, ResourceMemberType type) { this.Actions.Add(new ResourceAction { Action = action, Type = type }); }
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; }