protected virtual IUserPermissionMvoStateDeleted Map(IDeleteUserPermissionMvo c)
        {
            var stateEventId = new UserPermissionMvoEventId(c.UserPermissionId, c.UserVersion);
            IUserPermissionMvoStateDeleted e = NewUserPermissionMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
Beispiel #2
0
        protected virtual IUserPermissionMvoStateDeleted Map(IDeleteUserPermissionMvo c)
        {
            var stateEventId = new UserPermissionMvoStateEventId(c.UserPermissionId, c.UserVersion);
            IUserPermissionMvoStateDeleted e = NewUserPermissionMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;


            return(e);
        }
 public virtual void When(IDeleteUserPermissionMvo c)
 {
     Update(c, ar => ar.Delete(c));
 }
        public virtual void Delete(IDeleteUserPermissionMvo c)
        {
            IUserPermissionMvoStateDeleted e = Map(c);

            Apply(e);
        }
 void IUserPermissionMvoApplicationService.When(IDeleteUserPermissionMvo c)
 {
     this.When((DeleteUserPermissionMvoDto)c);
 }