public static UserDto ToUserDto(this User entity)
        {
            if (entity == null)
            {
                return(null);
            }

            UserDto dto = new UserDto();

            dto.CopyPropertiesFrom(entity);

            return(dto);
        }