protected virtual IPermissionStateDeleted Map(IDeletePermission c) { var stateEventId = new PermissionStateEventId(c.PermissionId, c.Version); IPermissionStateDeleted e = NewPermissionStateDeleted(stateEventId); ReflectUtils.CopyPropertyValue("CommandId", c, e); e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }
protected virtual IPermissionStateDeleted Map(IDeletePermission c) { var stateEventId = new PermissionEventId(c.PermissionId, c.Version); IPermissionStateDeleted e = NewPermissionStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
protected virtual IPermissionStateDeleted Map(IDeletePermission c) { var stateEventId = new PermissionStateEventId(c.PermissionId, c.Version); IPermissionStateDeleted e = NewPermissionStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }
public virtual void Delete(IDeletePermission c) { IPermissionStateDeleted e = Map(c); Apply(e); }
public virtual void When(IDeletePermission c) { Update(c, ar => ar.Delete(c)); }
void IPermissionApplicationService.When(IDeletePermission c) { this.When((DeletePermissionDto)c); }