public static RestrictionDefinition Create(string type, ActorDefinition actor) { RestrictionType parsedType; Enum.TryParse(type, true, out parsedType); return new RestrictionDefinition() { Actor = actor, Type = parsedType }; }
public static RestrictionDefinition Create(RestrictionType type, ActorDefinition actor) { return new RestrictionDefinition() { Actor = actor, Type = type }; }
public static ActorDefinition Create(string name, string rule, string value) { ActorDefinition actorDefinition = new ActorDefinition() { Name = name, Rule = rule, Value = value }; return actorDefinition; }
public static RestrictionDefinition Create(string type, ActorDefinition actor) { RestrictionType parsedType; Enum.TryParse(type, true, out parsedType); return(new RestrictionDefinition() { Actor = actor, Type = parsedType }); }