protected virtual IUserRoleMvoStateDeleted Map(IDeleteUserRoleMvo c) { var stateEventId = new UserRoleMvoEventId(c.UserRoleId, c.UserVersion); IUserRoleMvoStateDeleted e = NewUserRoleMvoStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
protected virtual IUserRoleMvoStateDeleted Map(IDeleteUserRoleMvo c) { var stateEventId = new UserRoleMvoStateEventId(c.UserRoleId, c.UserVersion); IUserRoleMvoStateDeleted e = NewUserRoleMvoStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }
public virtual void Delete(IDeleteUserRoleMvo c) { IUserRoleMvoStateDeleted e = Map(c); Apply(e); }
void IUserRoleMvoApplicationService.When(IDeleteUserRoleMvo c) { this.When((DeleteUserRoleMvoDto)c); }
public virtual void When(IDeleteUserRoleMvo c) { Update(c, ar => ar.Delete(c)); }