protected virtual IRolePermissionStateDeleted Map(IDeleteRolePermission c) { var stateEventId = new RolePermissionStateEventId(c.Id, c.Version); IRolePermissionStateDeleted e = NewRolePermissionStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }
protected virtual IRolePermissionStateDeleted Map(IDeleteRolePermission c) { var stateEventId = new RolePermissionEventId(c.Id, c.Version); IRolePermissionStateDeleted e = NewRolePermissionStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
void IRolePermissionApplicationService.When(IDeleteRolePermission c) { this.When((DeleteRolePermissionDto)c); }
public virtual void When(IDeleteRolePermission c) { Update(c, ar => ar.Delete(c)); }
public virtual void Delete(IDeleteRolePermission c) { IRolePermissionStateDeleted e = Map(c); Apply(e); }