示例#1
0
        public EntityCreatedDto GetEntityCreatedDto(User createdBy, DateTime?createdAt)
        {
            if (createdAt == null)
            {
                DateTime tempDateTime = DateTime.Now;
                tempDateTime = tempDateTime.AddMilliseconds(-tempDateTime.Millisecond);
                createdAt    = tempDateTime;
            }
            if (createdBy == null)
            {
                createdBy = UserCreator.Create();
            }
            EntityCreatedDto entityCreatedDto = new EntityCreatedDto(createdBy, createdAt.Value);

            return(entityCreatedDto);
        }