Esempio n. 1
0
        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));
 }
Esempio n. 3
0
 void IRoleTypeApplicationService.When(IDeleteRoleType c)
 {
     this.When((DeleteRoleTypeDto)c);
 }
Esempio n. 4
0
        public virtual void Delete(IDeleteRoleType c)
        {
            IRoleTypeStateDeleted e = Map(c);

            Apply(e);
        }