protected virtual IUserLoginMvoStateDeleted Map(IDeleteUserLoginMvo c) { var stateEventId = new UserLoginMvoStateEventId(c.UserLoginId, c.UserVersion); IUserLoginMvoStateDeleted e = NewUserLoginMvoStateDeleted(stateEventId); ReflectUtils.CopyPropertyValue("CommandId", c, e); e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }
protected virtual IUserLoginMvoStateDeleted Map(IDeleteUserLoginMvo c) { var stateEventId = new UserLoginMvoEventId(c.UserLoginId, c.UserVersion); IUserLoginMvoStateDeleted e = NewUserLoginMvoStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public virtual void Delete(IDeleteUserLoginMvo c) { IUserLoginMvoStateDeleted e = Map(c); Apply(e); }
public virtual void When(IDeleteUserLoginMvo c) { Update(c, ar => ar.Delete(c)); }
void IUserLoginMvoApplicationService.When(IDeleteUserLoginMvo c) { this.When((DeleteUserLoginMvoDto)c); }