protected virtual IRoleTypeStateDeleted Map(IDeleteRoleType c) { var stateEventId = new RoleTypeEventId(c.RoleTypeId, c.Version); IRoleTypeStateDeleted e = NewRoleTypeStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public virtual void When(IDeleteRoleType c) { Update(c, ar => ar.Delete(c)); }
void IRoleTypeApplicationService.When(IDeleteRoleType c) { this.When((DeleteRoleTypeDto)c); }
public virtual void Delete(IDeleteRoleType c) { IRoleTypeStateDeleted e = Map(c); Apply(e); }