public RemoveStaffCommand(Guid id, Guid updateBy, DateTime updateDate, DelFlagEnum delflag = DelFlagEnum.Deleted)
 {
     this.Id         = id;
     this.UpdateBy   = updateBy;
     this.UpdateDate = updateDate;
     this.DelFlag    = (int)delflag;
 }
Beispiel #2
0
        public Guid CreateStaff(CreateStaffRequestModel request, Guid createBy, Guid?id = null, DateTime?createDateTime = null,
                                DelFlagEnum delFlag = DelFlagEnum.Normal)
        {
            CreateStaffCommand command = request.MapTo <CreateStaffCommand>();

            command.Id         = id ?? Guid.NewGuid();
            command.CreateBy   = createBy;
            command.CreateDate = createDateTime ?? DateTime.Now;
            command.DelFlag    = (int)delFlag;
            _bus.SendCommand(command);
            return(command.Id);
        }