Example #1
0
        protected virtual IRoleTypeStateCreated Map(ICreateRoleType c)
        {
            var stateEventId        = new RoleTypeEventId(c.RoleTypeId, c.Version);
            IRoleTypeStateCreated e = NewRoleTypeStateCreated(stateEventId);

            e.ParentTypeId = c.ParentTypeId;
            e.HasTable     = c.HasTable;
            e.Description  = c.Description;
            e.Active       = c.Active;
            e.CommandId    = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            var version = c.Version;


            return(e);
        }
 public virtual void When(ICreateRoleType c)
 {
     Update(c, ar => ar.Create(c));
 }
Example #3
0
 void IRoleTypeApplicationService.When(ICreateRoleType c)
 {
     this.When((CreateRoleTypeDto)c);
 }
Example #4
0
        public virtual void Create(ICreateRoleType c)
        {
            IRoleTypeStateCreated e = Map(c);

            Apply(e);
        }