protected virtual IUserRoleStateCreated MapCreate(ICreateUserRole c, IUserCommand outerCommand, long version, IUserState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new UserRoleEventId(c.UserId, c.RoleId, version); IUserRoleStateCreated e = NewUserRoleStateCreated(stateEventId); var s = outerState.UserRoles.Get(c.RoleId, true); e.Active = c.Active; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }// END Map(ICreate... ////////////////////////////
protected virtual IUserRoleStateCreated MapCreate(ICreateUserRole c, IUserCommand outerCommand, long version, IUserState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new UserRoleStateEventId(c.UserId, c.RoleId, version); IUserRoleStateCreated e = NewUserRoleStateCreated(stateEventId); var s = outerState.UserRoles.Get(c.RoleId); e.Active = c.Active; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }// END Map(ICreate... ////////////////////////////
public void Remove(ICreateUserRole c) { _innerCommands.Remove(c); }
public void Add(ICreateUserRole c) { _innerCommands.Add(c); }
void ICreateUserRoleCommands.Remove(ICreateUserRole c) { _innerCommands.Remove((CreateUserRoleDto)c); }
void ICreateUserRoleCommands.Add(ICreateUserRole c) { _innerCommands.Add((CreateUserRoleDto)c); }