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); }
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)); }
public virtual void MergePatch(IMergePatchRolePermission c) { IRolePermissionStateMergePatched e = Map(c); Apply(e); }