public static Action Create(IActionCreateIo input) { Debug.Assert(input.Id != null, "input.Id != null"); return(new Action(input.Id.Value) { IsAllowed = input.IsAllowed, IsAudit = input.IsAudit, Description = input.Description, IsPersist = input.IsPersist, Name = input.Name, OntologyId = input.OntologyId, SortCode = input.SortCode, Verb = input.Verb }); }
public static Action Create(IActionCreateIo input) { Debug.Assert(input.Id != null, "input.Id != null"); return new Action { IsAllowed = input.IsAllowed, IsAudit = input.IsAudit, Id = input.Id.Value, Description = input.Description, IsPersist = input.IsPersist, Name = input.Name, OntologyId = input.OntologyId, SortCode = input.SortCode, Verb = input.Verb }; }
public static void AddAction(this IAcDomain acDomain, IAcSession acSession, IActionCreateIo input) { acDomain.Handle(new AddActionCommand(acSession, input)); }