예제 #1
0
        protected virtual IRolePermissionStateMergePatched Map(IMergePatchRolePermission c)
        {
            var stateEventId = new RolePermissionStateEventId(c.Id, c.Version);
            IRolePermissionStateMergePatched e = NewRolePermissionStateMergePatched(stateEventId);

            e.Active = c.Active;
            e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved;

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;

            var version = c.Version;


            return(e);
        }
예제 #2
0
        protected virtual IRolePermissionStateMergePatched Map(IMergePatchRolePermission c)
        {
            var stateEventId = new RolePermissionEventId(c.Id, c.Version);
            IRolePermissionStateMergePatched e = NewRolePermissionStateMergePatched(stateEventId);

            e.Active = c.Active;
            e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved;

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();

            var version = c.Version;


            return(e);
        }
 void IRolePermissionApplicationService.When(IMergePatchRolePermission c)
 {
     this.When((MergePatchRolePermissionDto)c);
 }
 public virtual void When(IMergePatchRolePermission c)
 {
     Update(c, ar => ar.MergePatch(c));
 }
예제 #5
0
        public virtual void MergePatch(IMergePatchRolePermission c)
        {
            IRolePermissionStateMergePatched e = Map(c);

            Apply(e);
        }