protected virtual IAttributeValueMvoStateDeleted Map(IDeleteAttributeValueMvo c) { var stateEventId = new AttributeValueMvoStateEventId(c.AttributeValueId, c.AttributeVersion); IAttributeValueMvoStateDeleted e = NewAttributeValueMvoStateDeleted(stateEventId); ReflectUtils.CopyPropertyValue("CommandId", c, e); e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }
protected virtual IAttributeValueMvoStateDeleted Map(IDeleteAttributeValueMvo c) { var stateEventId = new AttributeValueMvoEventId(c.AttributeValueId, c.AttributeVersion); IAttributeValueMvoStateDeleted e = NewAttributeValueMvoStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
void IAttributeValueMvoApplicationService.When(IDeleteAttributeValueMvo c) { this.When((DeleteAttributeValueMvoDto)c); }
public virtual void Delete(IDeleteAttributeValueMvo c) { IAttributeValueMvoStateDeleted e = Map(c); Apply(e); }
public virtual void When(IDeleteAttributeValueMvo c) { Update(c, ar => ar.Delete(c)); }