示例#1
0
 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
     });
 }
示例#2
0
 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
     };
 }
示例#3
0
 public static void AddAction(this IAcDomain acDomain, IAcSession acSession, IActionCreateIo input)
 {
     acDomain.Handle(new AddActionCommand(acSession, input));
 }
示例#4
0
 public static void AddAction(this IAcDomain acDomain, IAcSession acSession, IActionCreateIo input)
 {
     acDomain.Handle(new AddActionCommand(acSession, input));
 }